Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002007/0.002007, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002315/0.002315, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.53/1.53, allocations: 230.6 MB / 258.3 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 68.03 kB / 378.5 MB, free: 3.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3091, allocations: 53.36 MB / 431.9 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003643/0.3127, allocations: 2.054 MB / 433.9 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00107/0.3138, allocations: 0.5492 MB / 434.5 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.3139, allocations: 4 kB / 434.5 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001151/0.314, allocations: 15.8 kB / 434.5 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.964e-05/0.3141, allocations: 19.8 kB / 434.5 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003147/0.3144, allocations: 63.75 kB / 434.6 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002015/0.3146, allocations: 119.6 kB / 434.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.3148, allocations: 45.61 kB / 434.8 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.57e-05/0.3149, allocations: 51.78 kB / 434.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.692e-05/0.315, allocations: 51.78 kB / 434.9 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.948e-05/0.315, allocations: 12 kB / 434.9 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.227e-05/0.315, allocations: 8 kB / 434.9 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.356e-05/0.3151, allocations: 23.92 kB / 434.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.689e-05/0.3152, allocations: 63.64 kB / 435 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002068/0.3154, allocations: 128.2 kB / 435.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3154, allocations: 0 / 435.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3154, allocations: 3.938 kB / 435.1 MB, free: 3.715 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.899e-06/0.3154, allocations: 0 / 435.1 MB, free: 3.715 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006536/0.316, allocations: 353.8 kB / 435.4 MB, free: 3.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.3161, allocations: 12.03 kB / 435.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.332e-05/0.3161, allocations: 46.73 kB / 435.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.931e-05/0.3162, allocations: 12.84 kB / 435.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002901/0.3165, allocations: 149.5 kB / 435.7 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.3165, allocations: 12.38 kB / 435.7 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.103e-05/0.3165, allocations: 16.33 kB / 435.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005323/0.3171, allocations: 251.4 kB / 435.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.3171, allocations: 0 / 435.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/0.3171, allocations: 4 kB / 435.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.3171, allocations: 4 kB / 435.9 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002798/0.3174, allocations: 95.86 kB / 436 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006849/0.3181, allocations: 0.5232 MB / 436.5 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003013/0.3184, allocations: 140 kB / 436.7 MB, free: 1.949 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.3185, allocations: 74.53 kB / 436.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.68e-05/0.3186, allocations: 4 kB / 436.8 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.528e-05/0.3186, allocations: 42.5 kB / 436.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.192e-06/0.3186, allocations: 0 / 436.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005312/0.3191, allocations: 169.4 kB / 437 MB, free: 1.641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.3192, allocations: 118.9 kB / 437.1 MB, free: 1.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.3193, allocations: 130.1 kB / 437.2 MB, free: 1.359 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.3194, allocations: 25.7 kB / 437.2 MB, free: 1.328 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.324e-05/0.3195, allocations: 115.8 kB / 437.4 MB, free: 1.211 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.074e-05/0.3195, allocations: 31.77 kB / 437.4 MB, free: 1.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.848e-05/0.3195, allocations: 38.08 kB / 437.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.3197, allocations: 322.8 kB / 437.7 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.3198, allocations: 39.97 kB / 437.8 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.32, allocations: 120.9 kB / 437.9 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003248/0.3203, allocations: 192.7 kB / 438.1 MB, free: 384 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.3203, allocations: 0 / 438.1 MB, free: 384 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003844/0.3207, allocations: 189.6 kB / 438.3 MB, free: 188 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.3207, allocations: 12.06 kB / 438.3 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.3207, allocations: 7.938 kB / 438.3 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.3208, allocations: 4 kB / 438.3 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001893/0.321, allocations: 43.92 kB / 438.3 MB, free: 120 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.279e-05/0.321, allocations: 7.984 kB / 438.3 MB, free: 112 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.3211, allocations: 15.89 kB / 438.4 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.3211, allocations: 12 kB / 438.4 MB, free: 84 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001389/0.3212, allocations: 129.8 kB / 438.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001627/0.3214, allocations: 89.52 kB / 438.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.984e-05/0.3214, allocations: 24.59 kB / 438.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.3214, allocations: 0 / 438.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3215, allocations: 0 / 438.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3215, allocations: 4 kB / 438.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002867/0.3217, allocations: 176.6 kB / 438.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3217, allocations: 0 / 438.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001736/0.3219, allocations: 31.98 kB / 438.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.3219, allocations: 3.984 kB / 438.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.3219, allocations: 3.938 kB / 438.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.13e-06/0.3219, allocations: 12 kB / 438.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3219, allocations: 3.938 kB / 438.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005908/0.3225, allocations: 367.6 kB / 439.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.311e-05/0.3226, allocations: 15.98 kB / 439.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.3226, allocations: 3.938 kB / 439.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.3227, allocations: 11.98 kB / 439.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.481e-05/0.3227, allocations: 7.984 kB / 439.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.085e-06/0.3228, allocations: 4 kB / 439.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.87e-05/0.3228, allocations: 102.2 kB / 439.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3228, allocations: 0 / 439.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003132/0.3231, allocations: 27.95 kB / 439.4 MB, free: 15 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009081/0.324, allocations: 0.9156 MB / 440.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003275/0.3244, allocations: 115.8 kB / 440.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3244, allocations: 0 / 440.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.569e-05/0.3245, allocations: 31.91 kB / 440.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005007/0.325, allocations: 44.94 kB / 440.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002615/0.3276, allocations: 2.043 MB / 442.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.328, allocations: 0.7084 MB / 443.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.221e-05/0.328, allocations: 12.64 kB / 443.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.64e-05/0.3281, allocations: 31.44 kB / 443.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3281, allocations: 4 kB / 443.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03122/0.3593, allocations: 2.843 MB / 446.1 MB, free: 8.168 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.525/8.884, allocations: 11.48 kB / 446.1 MB, free: 8.16 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.41665371786803] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 8.960806115996093 8.987698454 8.668479462 Calling exit ...