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.001329/0.001329, 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.001431/0.001431, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 230.5 MB / 258.2 MB, free: 8.023 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.2292/0.2292, allocations: 46.93 MB / 361.6 MB, free: 4.188 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.002318/0.002318, allocations: 83.86 kB / 0.497 GB, free: 7.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3201, allocations: 66.08 MB / 0.5615 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003114/0.3232, allocations: 1.727 MB / 0.5632 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004079/0.3236, allocations: 159.5 kB / 0.5633 GB, free: 2.402 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.007e-05/0.3237, allocations: 0 / 0.5633 GB, free: 2.402 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.548e-05/0.3237, allocations: 11.88 kB / 0.5634 GB, free: 2.391 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.663e-05/0.3238, allocations: 11.86 kB / 0.5634 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003327/0.3241, allocations: 99.8 kB / 0.5635 GB, free: 2.281 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001785/0.3243, allocations: 111.8 kB / 0.5636 GB, free: 2.172 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.3244, allocations: 23.55 kB / 0.5636 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.388e-05/0.3245, allocations: 47.84 kB / 0.5636 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.339e-05/0.3245, allocations: 39.78 kB / 0.5637 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.277e-05/0.3246, allocations: 12 kB / 0.5637 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.675e-05/0.3246, allocations: 8 kB / 0.5637 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.874e-05/0.3246, allocations: 23.92 kB / 0.5637 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.077e-05/0.3247, allocations: 47.72 kB / 0.5638 GB, free: 1.969 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001652/0.3248, allocations: 95.56 kB / 0.5638 GB, free: 1.875 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3248, allocations: 0 / 0.5638 GB, free: 1.875 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3248, allocations: 0 / 0.5638 GB, free: 1.875 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.3248, allocations: 0 / 0.5638 GB, free: 1.875 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.0006483/0.3255, allocations: 361.8 kB / 0.5642 GB, free: 1.488 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.3255, allocations: 16.03 kB / 0.5642 GB, free: 1.473 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.997e-05/0.3256, allocations: 38.73 kB / 0.5642 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.854e-05/0.3256, allocations: 20.84 kB / 0.5643 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.3258, allocations: 140.5 kB / 0.5644 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.3258, allocations: 8.375 kB / 0.5644 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.643e-05/0.3259, allocations: 8.359 kB / 0.5644 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003459/0.3262, allocations: 150.5 kB / 0.5646 GB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.3262, allocations: 3.938 kB / 0.5646 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.3262, allocations: 8 kB / 0.5646 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.3262, allocations: 4 kB / 0.5646 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003518/0.3266, allocations: 111.8 kB / 0.5647 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006595/0.3273, allocations: 0.5116 MB / 0.5652 GB, free: 384 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003914/0.3276, allocations: 134.5 kB / 0.5653 GB, free: 240 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.3278, allocations: 52.84 kB / 0.5654 GB, free: 184 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.3278, allocations: 4 kB / 0.5654 GB, free: 180 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/0.3279, allocations: 46.48 kB / 0.5654 GB, free: 124 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.3279, allocations: 0 / 0.5654 GB, free: 124 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006265/0.3285, allocations: 185.6 kB / 0.5656 GB, free: 15.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.722e-05/0.3286, allocations: 102.8 kB / 0.5657 GB, free: 15.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/0.3287, allocations: 140.5 kB / 0.5658 GB, free: 15.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.3287, allocations: 37.58 kB / 0.5659 GB, free: 15.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.075e-05/0.3288, allocations: 108.1 kB / 0.566 GB, free: 15.51 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.092e-05/0.3288, allocations: 23.84 kB / 0.566 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.287e-05/0.3289, allocations: 25.7 kB / 0.566 GB, free: 15.45 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.329, allocations: 326.8 kB / 0.5663 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001834/0.3292, allocations: 47.95 kB / 0.5664 GB, free: 15.08 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002019/0.3294, allocations: 84.19 kB / 0.5664 GB, free: 14.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003208/0.3297, allocations: 118.8 kB / 0.5666 GB, free: 14.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3297, allocations: 0 / 0.5666 GB, free: 14.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003932/0.3301, allocations: 157.5 kB / 0.5667 GB, free: 14.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.3301, allocations: 7.938 kB / 0.5667 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.3301, allocations: 0 / 0.5667 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.3302, allocations: 4 kB / 0.5667 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.3303, allocations: 23.97 kB / 0.5667 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.3303, allocations: 0 / 0.5667 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001454/0.3304, allocations: 43.86 kB / 0.5668 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.3305, allocations: 4 kB / 0.5668 GB, free: 14.61 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.0001005/0.3306, allocations: 117.8 kB / 0.5669 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.396e-05/0.3306, allocations: 7.953 kB / 0.5669 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.459e-05/0.3306, allocations: 16.7 kB / 0.5669 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.3306, allocations: 4 kB / 0.5669 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3306, allocations: 0 / 0.5669 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3306, allocations: 3.938 kB / 0.5669 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002145/0.3309, allocations: 176.6 kB / 0.5671 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3309, allocations: 4 kB / 0.5671 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.331, allocations: 19.97 kB / 0.5671 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.331, allocations: 0 / 0.5671 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.331, allocations: 8 kB / 0.5671 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.331, allocations: 0 / 0.5671 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.331, allocations: 0 / 0.5671 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000428/0.3314, allocations: 243.3 kB / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.738e-05/0.3314, allocations: 7.953 kB / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.924e-05/0.3314, allocations: 0 / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.3316, allocations: 31.97 kB / 0.5674 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.547e-05/0.3316, allocations: 15.92 kB / 0.5674 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.3317, allocations: 12.11 kB / 0.5674 GB, free: 13.89 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.854e-05/0.3317, allocations: 103.2 kB / 0.5675 GB, free: 13.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3317, allocations: 3.938 kB / 0.5675 GB, free: 13.78 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002426/0.332, allocations: 23.94 kB / 0.5675 GB, free: 13.76 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.0007374/0.3327, allocations: 0.7593 MB / 0.5683 GB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004029/0.3331, allocations: 112 kB / 0.5684 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3331, allocations: 4 kB / 0.5684 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001811/0.3333, allocations: 59.89 kB / 0.5685 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003092/0.3336, allocations: 33.02 kB / 0.5685 GB, free: 12.78 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002277/0.3359, allocations: 1.665 MB / 0.5701 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003138/0.3362, allocations: 0.6963 MB / 0.5708 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.984e-05/0.3363, allocations: 12.66 kB / 0.5708 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.232e-05/0.3363, allocations: 27.42 kB / 0.5708 GB, free: 10.26 MB / 414.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3363, allocations: 4 kB / 0.5708 GB, free: 10.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.36, allocations: 2.802 MB / 0.5736 GB, free: 7.523 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.142/8.502, allocations: 10.41 kB / 0.5736 GB, free: 7.516 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.00019988 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.455141715705395] Failed to read output from testmodel.py, exit status != 0: ['time', 'ramp.y', 'greaterThreshold.y', 'greaterEqualThreshold.y', 'lessThreshold.y', 'lessEqualThreshold.y'] 8.571814855094999 8.588673617 8.260740574 Calling exit ...