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.001342/0.001342, 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.001747/0.001747, allocations: 216.4 kB / 23 MB, free: 5.582 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.532/1.532, allocations: 230.2 MB / 256.2 MB, free: 8.539 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.2594/0.2594, allocations: 46.89 MB / 359.4 MB, free: 4.895 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.002339/0.002339, allocations: 83.86 kB / 0.4941 GB, free: 9.004 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.3778, allocations: 65.99 MB / 0.5586 GB, free: 5.16 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003579/0.3813, allocations: 1.727 MB / 0.5602 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004845/0.3818, allocations: 155.5 kB / 0.5604 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.3819, allocations: 4 kB / 0.5604 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.133e-05/0.382, allocations: 7.875 kB / 0.5604 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.412e-05/0.3821, allocations: 19.73 kB / 0.5604 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004723/0.3826, allocations: 103.4 kB / 0.5605 GB, free: 3.137 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002175/0.3828, allocations: 107.8 kB / 0.5606 GB, free: 3.031 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.383, allocations: 31.2 kB / 0.5607 GB, free: 3 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.957e-05/0.383, allocations: 39.84 kB / 0.5607 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.178e-05/0.3831, allocations: 39.78 kB / 0.5607 GB, free: 2.922 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.948e-05/0.3832, allocations: 8 kB / 0.5607 GB, free: 2.914 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.527e-05/0.3832, allocations: 11.94 kB / 0.5608 GB, free: 2.902 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.733e-05/0.3832, allocations: 27.91 kB / 0.5608 GB, free: 2.875 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.471e-05/0.3833, allocations: 39.73 kB / 0.5608 GB, free: 2.836 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000202/0.3835, allocations: 91.62 kB / 0.5609 GB, free: 2.746 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3835, allocations: 0 / 0.5609 GB, free: 2.746 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3835, allocations: 4 kB / 0.5609 GB, free: 2.742 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.3835, allocations: 0 / 0.5609 GB, free: 2.742 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.0009078/0.3844, allocations: 446.9 kB / 0.5613 GB, free: 2.254 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.3845, allocations: 8.031 kB / 0.5613 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.299e-05/0.3845, allocations: 38.75 kB / 0.5614 GB, free: 2.199 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.21e-05/0.3846, allocations: 20.83 kB / 0.5614 GB, free: 2.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003781/0.385, allocations: 206.7 kB / 0.5616 GB, free: 1.941 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.385, allocations: 4.375 kB / 0.5616 GB, free: 1.938 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.385, allocations: 8.375 kB / 0.5616 GB, free: 1.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004078/0.3854, allocations: 150.4 kB / 0.5618 GB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.3854, allocations: 3.938 kB / 0.5618 GB, free: 1.758 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.985e-05/0.3854, allocations: 8 kB / 0.5618 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.3854, allocations: 0 / 0.5618 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003761/0.3858, allocations: 107.8 kB / 0.5619 GB, free: 1.645 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007894/0.3866, allocations: 0.5477 MB / 0.5624 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004408/0.387, allocations: 142.4 kB / 0.5625 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000184/0.3872, allocations: 52.84 kB / 0.5626 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.579e-05/0.3873, allocations: 4.078 kB / 0.5626 GB, free: 0.832 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/0.3873, allocations: 38.55 kB / 0.5626 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.001e-06/0.3873, allocations: 0 / 0.5626 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007408/0.388, allocations: 185.5 kB / 0.5628 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.954e-05/0.3881, allocations: 106.8 kB / 0.5629 GB, free: 480 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002175/0.3883, allocations: 142.1 kB / 0.563 GB, free: 324 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.3884, allocations: 25.7 kB / 0.5631 GB, free: 292 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.844e-05/0.3884, allocations: 116.1 kB / 0.5632 GB, free: 172 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.857e-05/0.3885, allocations: 15.86 kB / 0.5632 GB, free: 156 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.645e-05/0.3885, allocations: 29.7 kB / 0.5632 GB, free: 120 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.3887, allocations: 318.8 kB / 0.5635 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001862/0.3889, allocations: 51.95 kB / 0.5636 GB, free: 15.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002209/0.3891, allocations: 92.17 kB / 0.5637 GB, free: 15.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003364/0.3894, allocations: 106.8 kB / 0.5638 GB, free: 15.53 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-06/0.3894, allocations: 3.984 kB / 0.5638 GB, free: 15.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004505/0.3899, allocations: 165.5 kB / 0.5639 GB, free: 15.36 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.3899, allocations: 8 kB / 0.5639 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3899, allocations: 0 / 0.5639 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.3899, allocations: 0 / 0.5639 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.3901, allocations: 27.97 kB / 0.564 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.3901, allocations: 0 / 0.564 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001605/0.3902, allocations: 39.78 kB / 0.564 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.3903, allocations: 4.062 kB / 0.564 GB, free: 15.28 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.000123/0.3904, allocations: 125.8 kB / 0.5641 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.443e-05/0.3904, allocations: 7.953 kB / 0.5641 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.495e-05/0.3905, allocations: 12.72 kB / 0.5641 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.3905, allocations: 0 / 0.5641 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3905, allocations: 0 / 0.5641 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.3905, allocations: 7.922 kB / 0.5641 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002733/0.3908, allocations: 201.6 kB / 0.5643 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.3908, allocations: 3.984 kB / 0.5643 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.3909, allocations: 19.98 kB / 0.5644 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.3909, allocations: 4 kB / 0.5644 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.3909, allocations: 7.922 kB / 0.5644 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.3909, allocations: 4 kB / 0.5644 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3909, allocations: 0 / 0.5644 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005049/0.3914, allocations: 251.2 kB / 0.5646 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.621e-05/0.3915, allocations: 85.05 kB / 0.5647 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.355e-05/0.3915, allocations: 4 kB / 0.5647 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001849/0.3917, allocations: 19.97 kB / 0.5647 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.619e-05/0.3917, allocations: 15.92 kB / 0.5647 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.3917, allocations: 4 kB / 0.5647 GB, free: 14.42 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.836e-05/0.3918, allocations: 105.5 kB / 0.5648 GB, free: 14.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3918, allocations: 0 / 0.5648 GB, free: 14.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002437/0.3921, allocations: 23.94 kB / 0.5649 GB, free: 14.3 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.0008791/0.393, allocations: 0.7671 MB / 0.5656 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000491/0.3934, allocations: 111.9 kB / 0.5657 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3934, allocations: 3.938 kB / 0.5657 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002157/0.3937, allocations: 68 kB / 0.5658 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003272/0.394, allocations: 19.92 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.002659/0.3967, 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.0003821/0.397, allocations: 0.6963 MB / 0.5681 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.51e-05/0.3971, allocations: 13.2 kB / 0.5681 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.374e-05/0.3972, allocations: 23.44 kB / 0.5681 GB, free: 10.79 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3972, allocations: 0 / 0.5681 GB, free: 10.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02596/0.4231, allocations: 2.752 MB / 0.5708 GB, free: 8.109 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.105/8.528, allocations: 11.92 kB / 0.5708 GB, free: 8.098 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.356398996984353] Failed to read output from testmodel.py, exit status != 0: 8.596808211004827 8.613260684 8.22658353 Calling exit ...