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.001688/0.001688, allocations: 109.4 kB / 19.8 MB, free: 2.5 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.002096/0.002096, allocations: 213.4 kB / 22.99 MB, free: 5.578 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.519/1.519, allocations: 230.2 MB / 256.2 MB, free: 8.551 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.245/0.245, allocations: 46.88 MB / 359.4 MB, free: 4.922 MB / 286.1 MB " [Timeout remaining time 179] 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.002391/0.002391, allocations: 79.88 kB / 0.4941 GB, free: 9.027 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3973/0.3997, allocations: 65.99 MB / 0.5586 GB, free: 5.152 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.00324/0.4029, allocations: 1.733 MB / 0.5603 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004865/0.4034, allocations: 159.5 kB / 0.5604 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.786e-05/0.4035, allocations: 4 kB / 0.5604 GB, free: 3.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.911e-05/0.4035, allocations: 11.88 kB / 0.5604 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.624e-05/0.4036, allocations: 15.8 kB / 0.5604 GB, free: 3.223 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003804/0.404, allocations: 91.86 kB / 0.5605 GB, free: 3.133 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001939/0.4042, allocations: 107.8 kB / 0.5606 GB, free: 3.027 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.4043, allocations: 31.14 kB / 0.5607 GB, free: 2.996 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.741e-05/0.4044, allocations: 39.86 kB / 0.5607 GB, free: 2.957 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.443e-05/0.4045, allocations: 47.77 kB / 0.5607 GB, free: 2.91 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.664e-05/0.4045, allocations: 8 kB / 0.5608 GB, free: 2.902 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.762e-05/0.4045, allocations: 12 kB / 0.5608 GB, free: 2.891 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.194e-05/0.4045, allocations: 23.91 kB / 0.5608 GB, free: 2.867 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.479e-05/0.4046, allocations: 39.8 kB / 0.5608 GB, free: 2.828 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001841/0.4048, allocations: 95.5 kB / 0.5609 GB, free: 2.734 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.4048, allocations: 0 / 0.5609 GB, free: 2.734 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.4048, allocations: 0 / 0.5609 GB, free: 2.734 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.4048, allocations: 0 / 0.5609 GB, free: 2.734 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.0008421/0.4056, allocations: 450.9 kB / 0.5613 GB, free: 2.242 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.4057, allocations: 12.03 kB / 0.5614 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.139e-05/0.4057, allocations: 34.75 kB / 0.5614 GB, free: 2.188 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.918e-05/0.4058, allocations: 16.84 kB / 0.5614 GB, free: 2.172 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002768/0.4061, allocations: 200.2 kB / 0.5616 GB, free: 1.938 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.646e-05/0.4061, allocations: 8.375 kB / 0.5616 GB, free: 1.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.4061, allocations: 4.375 kB / 0.5616 GB, free: 1.926 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003866/0.4065, allocations: 156.6 kB / 0.5618 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.4065, allocations: 3.938 kB / 0.5618 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.4065, allocations: 0 / 0.5618 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.4065, allocations: 4 kB / 0.5618 GB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003891/0.4069, allocations: 107.9 kB / 0.5619 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007751/0.4077, allocations: 0.5516 MB / 0.5624 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004383/0.4081, allocations: 138.4 kB / 0.5625 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001886/0.4083, allocations: 56.84 kB / 0.5626 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.4083, allocations: 3.984 kB / 0.5626 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.538e-05/0.4084, allocations: 38.56 kB / 0.5626 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.4084, allocations: 0 / 0.5626 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006922/0.4091, allocations: 185.6 kB / 0.5628 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.281e-05/0.4092, allocations: 102.8 kB / 0.5629 GB, free: 476 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.4093, allocations: 142.1 kB / 0.563 GB, free: 320 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.4093, allocations: 29.7 kB / 0.5631 GB, free: 284 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.4094, allocations: 108.1 kB / 0.5632 GB, free: 172 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.662e-05/0.4095, allocations: 23.8 kB / 0.5632 GB, free: 148 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.168e-05/0.4095, allocations: 33.64 kB / 0.5632 GB, free: 108 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.4097, allocations: 322.8 kB / 0.5635 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001842/0.4099, allocations: 47.95 kB / 0.5636 GB, free: 15.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.4101, allocations: 96.17 kB / 0.5637 GB, free: 15.62 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003469/0.4105, allocations: 106.4 kB / 0.5638 GB, free: 15.51 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4105, allocations: 0 / 0.5638 GB, free: 15.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004274/0.4109, allocations: 157.5 kB / 0.5639 GB, free: 15.35 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.4109, allocations: 4 kB / 0.5639 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.4109, allocations: 4 kB / 0.5639 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.4109, allocations: 0 / 0.5639 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/0.4111, allocations: 23.97 kB / 0.564 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.4111, allocations: 8.062 kB / 0.564 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001564/0.4112, allocations: 39.8 kB / 0.564 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.759e-06/0.4113, allocations: 0 / 0.564 GB, free: 15.27 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.0001239/0.4114, allocations: 125.8 kB / 0.5641 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.545e-05/0.4114, allocations: 7.953 kB / 0.5641 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.73e-05/0.4115, allocations: 12.72 kB / 0.5641 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.4115, allocations: 4 kB / 0.5641 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.4115, allocations: 4 kB / 0.5642 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.4115, allocations: 3.938 kB / 0.5642 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002728/0.4117, allocations: 197.6 kB / 0.5643 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.4117, allocations: 4 kB / 0.5643 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/0.4119, allocations: 19.97 kB / 0.5644 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.4119, allocations: 0 / 0.5644 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.4119, allocations: 8 kB / 0.5644 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.4119, allocations: 0 / 0.5644 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4119, allocations: 0 / 0.5644 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004944/0.4124, allocations: 251.6 kB / 0.5646 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.651e-05/0.4124, allocations: 85.06 kB / 0.5647 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/0.4125, allocations: 0 / 0.5647 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/0.4126, allocations: 35.95 kB / 0.5647 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.832e-05/0.4127, allocations: 7.938 kB / 0.5647 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-06/0.4127, allocations: 4 kB / 0.5647 GB, free: 14.42 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.197e-05/0.4128, allocations: 109.3 kB / 0.5648 GB, free: 14.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4128, allocations: 0 / 0.5648 GB, free: 14.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002522/0.4131, allocations: 27.88 kB / 0.5649 GB, free: 14.29 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.0008517/0.4139, allocations: 0.7593 MB / 0.5656 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004611/0.4144, allocations: 120 kB / 0.5657 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.4144, allocations: 0 / 0.5657 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001918/0.4146, allocations: 56.08 kB / 0.5658 GB, free: 13.33 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003419/0.4149, allocations: 30.86 kB / 0.5658 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002611/0.4175, allocations: 1.665 MB / 0.5674 GB, free: 11.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004979/0.418, allocations: 0.7002 MB / 0.5681 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.969e-05/0.4181, allocations: 4.672 kB / 0.5681 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.569e-05/0.4182, allocations: 35.42 kB / 0.5682 GB, free: 10.78 MB / 414.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4182, allocations: 0 / 0.5682 GB, free: 10.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0261/0.4443, allocations: 2.745 MB / 0.5708 GB, free: 8.105 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.131/8.575, allocations: 3.859 kB / 0.5708 GB, free: 8.102 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 --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds_fmu --startTime=0 --stopTime=1 --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.460728799982462] Failed to read output from testmodel.py, exit status != 0: 8.645350502018118 8.668971264 8.259812766 Calling exit ...