Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.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.001436/0.001436, allocations: 105.1 kB / 21.22 MB, free: 0.6797 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.001634/0.001634, allocations: 209.9 kB / 24.54 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 230.5 MB / 258.2 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2436/0.2436, allocations: 46.93 MB / 361.6 MB, free: 4.215 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica 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.002409/0.002409, allocations: 83.86 kB / 0.497 GB, free: 7.793 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4067/0.4091, allocations: 66.08 MB / 0.5615 GB, free: 4.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003108/0.4122, allocations: 1.735 MB / 0.5632 GB, free: 2.578 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004275/0.4126, allocations: 151.6 kB / 0.5633 GB, free: 2.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.786e-05/0.4127, allocations: 7.938 kB / 0.5633 GB, free: 2.422 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.94e-05/0.4128, allocations: 11.86 kB / 0.5634 GB, free: 2.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.659e-05/0.4128, allocations: 11.88 kB / 0.5634 GB, free: 2.398 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003473/0.4132, allocations: 99.8 kB / 0.5635 GB, free: 2.301 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001944/0.4134, allocations: 111.8 kB / 0.5636 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.4135, allocations: 31.53 kB / 0.5636 GB, free: 2.156 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.749e-05/0.4136, allocations: 39.86 kB / 0.5636 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.679e-05/0.4136, allocations: 39.78 kB / 0.5637 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.406e-05/0.4137, allocations: 8 kB / 0.5637 GB, free: 2.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.804e-05/0.4137, allocations: 12 kB / 0.5637 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.56e-05/0.4137, allocations: 19.92 kB / 0.5637 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.261e-05/0.4138, allocations: 47.72 kB / 0.5638 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.4139, allocations: 95.62 kB / 0.5639 GB, free: 1.898 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.4139, allocations: 0 / 0.5639 GB, free: 1.898 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4139, allocations: 0 / 0.5639 GB, free: 1.898 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.4139, allocations: 0 / 0.5639 GB, free: 1.898 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007145/0.4146, allocations: 373.7 kB / 0.5642 GB, free: 1.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.4147, allocations: 16.03 kB / 0.5642 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.481e-05/0.4147, allocations: 34.75 kB / 0.5643 GB, free: 1.441 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.994e-05/0.4148, allocations: 16.84 kB / 0.5643 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002644/0.415, allocations: 134.4 kB / 0.5644 GB, free: 1.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.4151, allocations: 12.36 kB / 0.5644 GB, free: 1.258 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.485e-05/0.4151, allocations: 4.375 kB / 0.5644 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003658/0.4154, allocations: 160.4 kB / 0.5646 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.4155, allocations: 3.938 kB / 0.5646 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.4155, allocations: 0 / 0.5646 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.4155, allocations: 7.938 kB / 0.5646 GB, free: 1.066 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003472/0.4158, allocations: 111.8 kB / 0.5647 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000727/0.4165, allocations: 0.5116 MB / 0.5652 GB, free: 404 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003874/0.4169, allocations: 134.5 kB / 0.5653 GB, free: 260 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/0.4171, allocations: 56.83 kB / 0.5654 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.4171, allocations: 4 kB / 0.5654 GB, free: 196 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.086e-05/0.4172, allocations: 38.56 kB / 0.5654 GB, free: 148 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.4172, allocations: 0 / 0.5654 GB, free: 148 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006404/0.4178, allocations: 189.5 kB / 0.5656 GB, free: 15.95 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.103e-05/0.4179, allocations: 106.8 kB / 0.5657 GB, free: 15.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.418, allocations: 140.5 kB / 0.5658 GB, free: 15.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/0.4181, allocations: 33.64 kB / 0.5659 GB, free: 15.64 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.084e-05/0.4181, allocations: 108.1 kB / 0.566 GB, free: 15.53 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.4182, allocations: 19.86 kB / 0.566 GB, free: 15.51 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.789e-05/0.4182, allocations: 29.7 kB / 0.566 GB, free: 15.47 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.4184, allocations: 322.8 kB / 0.5663 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.4186, allocations: 47.95 kB / 0.5664 GB, free: 15.1 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002063/0.4188, allocations: 88.17 kB / 0.5664 GB, free: 15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003134/0.4191, allocations: 110.5 kB / 0.5666 GB, free: 14.88 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.4191, allocations: 0 / 0.5666 GB, free: 14.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003928/0.4195, allocations: 157.5 kB / 0.5667 GB, free: 14.72 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.4195, allocations: 4 kB / 0.5667 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.4195, allocations: 0 / 0.5667 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.4195, allocations: 4 kB / 0.5667 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001525/0.4197, allocations: 27.91 kB / 0.5667 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.766e-05/0.4197, allocations: 0 / 0.5667 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001452/0.4198, allocations: 43.86 kB / 0.5668 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.4199, allocations: 7.984 kB / 0.5668 GB, free: 14.64 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (lessEqualThreshold.y,lessThreshold.y,greaterEqualThreshold.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001255/0.42, allocations: 113.8 kB / 0.5669 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.431e-05/0.42, allocations: 11.95 kB / 0.5669 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.437e-05/0.4201, allocations: 12.72 kB / 0.5669 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.4201, allocations: 7.984 kB / 0.5669 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.4201, allocations: 0 / 0.5669 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.4201, allocations: 3.938 kB / 0.5669 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002303/0.4203, allocations: 172.7 kB / 0.5671 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.4203, allocations: 0 / 0.5671 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.4204, allocations: 35.84 kB / 0.5671 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.4204, allocations: 0 / 0.5671 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.4204, allocations: 8 kB / 0.5671 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.4204, allocations: 0 / 0.5671 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.4204, allocations: 3.984 kB / 0.5671 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004484/0.4209, allocations: 239.3 kB / 0.5674 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.645e-05/0.4209, allocations: 7.953 kB / 0.5674 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.577e-05/0.4209, allocations: 7.984 kB / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001481/0.4211, allocations: 23.97 kB / 0.5674 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.815e-05/0.4211, allocations: 15.92 kB / 0.5674 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.4211, allocations: 4.188 kB / 0.5674 GB, free: 13.91 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.198e-05/0.4212, allocations: 99.27 kB / 0.5675 GB, free: 13.81 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4212, allocations: 3.938 kB / 0.5675 GB, free: 13.81 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002417/0.4215, allocations: 23.94 kB / 0.5675 GB, free: 13.79 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (greaterThreshold.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0007805/0.4222, allocations: 0.7631 MB / 0.5683 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003952/0.4226, allocations: 112.4 kB / 0.5684 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.4226, allocations: 4.125 kB / 0.5684 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001825/0.4228, allocations: 55.95 kB / 0.5685 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003223/0.4231, allocations: 31.03 kB / 0.5685 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002313/0.4255, allocations: 1.665 MB / 0.5701 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.4258, allocations: 0.6963 MB / 0.5708 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.706e-05/0.4259, allocations: 12.66 kB / 0.5708 GB, free: 10.31 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.947e-05/0.4259, allocations: 31.42 kB / 0.5708 GB, free: 10.28 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.4259, allocations: 0 / 0.5708 GB, free: 10.28 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02586/0.4518, allocations: 2.797 MB / 0.5736 GB, free: 7.551 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.138/8.589, allocations: 9.859 kB / 0.5736 GB, free: 7.547 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.51658129086718] Failed to read output from testmodel.py, exit status != 0: ['time', 'ramp.y', 'greaterThreshold.y', 'greaterEqualThreshold.y', 'lessThreshold.y', 'lessEqualThreshold.y'] 8.661731535568833 8.691859695 8.272304229 Calling exit ...