Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.002232/0.002232, allocations: 120.2 kB / 18.49 MB, free: 4.559 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.003022/0.003022, allocations: 214.2 kB / 21.46 MB, free: 1.605 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.503/1.503, allocations: 230.4 MB / 254.7 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2335/0.2335, allocations: 46.92 MB / 357.7 MB, free: 10.18 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002243/0.002243, allocations: 83.86 kB / 0.4916 GB, free: 7.719 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1178, allocations: 66.05 MB / 0.5561 GB, free: 5.543 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002904/0.1207, allocations: 1.717 MB / 0.5578 GB, free: 3.809 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003908/0.1211, allocations: 159.5 kB / 0.558 GB, free: 3.652 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.364e-05/0.1212, allocations: 11.94 kB / 0.558 GB, free: 3.641 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.954e-05/0.1213, allocations: 11.86 kB / 0.558 GB, free: 3.629 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.08e-05/0.1213, allocations: 7.875 kB / 0.558 GB, free: 3.621 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003236/0.1216, allocations: 95.86 kB / 0.5581 GB, free: 3.527 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001713/0.1218, allocations: 111.7 kB / 0.5582 GB, free: 3.418 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.1219, allocations: 21.39 kB / 0.5582 GB, free: 3.395 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.276e-05/0.122, allocations: 43.84 kB / 0.5583 GB, free: 3.352 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.114e-05/0.1221, allocations: 47.75 kB / 0.5583 GB, free: 3.305 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.535e-05/0.1221, allocations: 8 kB / 0.5583 GB, free: 3.297 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.583e-05/0.1221, allocations: 12 kB / 0.5583 GB, free: 3.285 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.586e-05/0.1221, allocations: 19.92 kB / 0.5583 GB, free: 3.266 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.374e-05/0.1222, allocations: 43.73 kB / 0.5584 GB, free: 3.223 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001441/0.1223, allocations: 87.62 kB / 0.5585 GB, free: 3.137 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1223, allocations: 0 / 0.5585 GB, free: 3.137 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1223, allocations: 4 kB / 0.5585 GB, free: 3.133 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.1223, allocations: 0 / 0.5585 GB, free: 3.133 MB / 414.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.0007075/0.123, allocations: 442.9 kB / 0.5589 GB, free: 2.648 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.1231, allocations: 12.02 kB / 0.5589 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.859e-05/0.1231, allocations: 8.188 kB / 0.5589 GB, free: 2.629 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.659e-05/0.1231, allocations: 38.69 kB / 0.559 GB, free: 2.582 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.891e-05/0.1232, allocations: 20.83 kB / 0.559 GB, free: 2.562 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002684/0.1234, allocations: 200.2 kB / 0.5592 GB, free: 2.328 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.1235, allocations: 8.375 kB / 0.5592 GB, free: 2.32 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.399e-05/0.1235, allocations: 8.375 kB / 0.5592 GB, free: 2.312 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003778/0.1238, allocations: 156.3 kB / 0.5593 GB, free: 2.141 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.1239, allocations: 0 / 0.5593 GB, free: 2.141 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.1239, allocations: 0 / 0.5593 GB, free: 2.141 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.1239, allocations: 4 kB / 0.5593 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003845/0.1243, allocations: 111.8 kB / 0.5594 GB, free: 2.027 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008197/0.1251, allocations: 0.5399 MB / 0.56 GB, free: 1.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004315/0.1255, allocations: 134.5 kB / 0.5601 GB, free: 1.289 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001864/0.1257, allocations: 60.78 kB / 0.5602 GB, free: 1.227 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.1257, allocations: 4 kB / 0.5602 GB, free: 1.223 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/0.1258, allocations: 42.55 kB / 0.5602 GB, free: 1.172 MB / 414.1 MB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.1258, allocations: 0 / 0.5602 GB, free: 1.172 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006569/0.1264, allocations: 185.5 kB / 0.5604 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.548e-05/0.1265, allocations: 102.8 kB / 0.5605 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.1266, allocations: 144.8 kB / 0.5606 GB, free: 0.707 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.1266, allocations: 29.7 kB / 0.5606 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.619e-05/0.1267, allocations: 108.2 kB / 0.5607 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.1268, allocations: 27.86 kB / 0.5608 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.896e-05/0.1268, allocations: 33.7 kB / 0.5608 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.127, allocations: 314.8 kB / 0.5611 GB, free: 184 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001998/0.1272, allocations: 51.94 kB / 0.5612 GB, free: 132 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002138/0.1274, allocations: 92.23 kB / 0.5612 GB, free: 24 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003632/0.1277, allocations: 110.7 kB / 0.5613 GB, free: 15.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1277, allocations: 4.031 kB / 0.5614 GB, free: 15.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004224/0.1282, allocations: 153.5 kB / 0.5615 GB, free: 15.75 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.1282, allocations: 4 kB / 0.5615 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.1282, allocations: 4 kB / 0.5615 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.1282, allocations: 0 / 0.5615 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001506/0.1283, allocations: 28.03 kB / 0.5615 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.1284, allocations: 11.88 kB / 0.5615 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.1285, allocations: 35.86 kB / 0.5616 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.1285, allocations: 0 / 0.5616 GB, free: 15.66 MB / 430.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.0001027/0.1286, allocations: 117.8 kB / 0.5617 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.475e-05/0.1286, allocations: 7.953 kB / 0.5617 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.557e-05/0.1287, allocations: 24.7 kB / 0.5617 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.1287, allocations: 0 / 0.5617 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1287, allocations: 3.938 kB / 0.5617 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.1287, allocations: 0 / 0.5617 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000248/0.129, allocations: 205.6 kB / 0.5619 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.129, allocations: 0 / 0.5619 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.1291, allocations: 19.97 kB / 0.5619 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1291, allocations: 0 / 0.5619 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.1291, allocations: 8 kB / 0.5619 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1291, allocations: 192 / 0.5619 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.1291, allocations: 11.88 kB / 0.562 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004648/0.1296, allocations: 235.3 kB / 0.5622 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.939e-05/0.1296, allocations: 85.06 kB / 0.5623 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.1296, allocations: 0 / 0.5623 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.1298, allocations: 31.97 kB / 0.5623 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.612e-05/0.1298, allocations: 15.91 kB / 0.5623 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-06/0.1298, allocations: 3.938 kB / 0.5623 GB, free: 14.81 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.311e-05/0.1299, allocations: 108.8 kB / 0.5624 GB, free: 14.71 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1299, allocations: 0 / 0.5624 GB, free: 14.71 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002408/0.1302, allocations: 23.94 kB / 0.5624 GB, free: 14.68 MB / 430.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.000813/0.131, allocations: 0.7631 MB / 0.5632 GB, free: 13.89 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0004631/0.1314, allocations: 119.8 kB / 0.5633 GB, free: 13.78 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1314, allocations: 0 / 0.5633 GB, free: 13.78 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001929/0.1316, allocations: 55.94 kB / 0.5634 GB, free: 13.72 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000303/0.1319, allocations: 29.41 kB / 0.5634 GB, free: 13.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002457/0.1344, allocations: 1.662 MB / 0.565 GB, free: 11.94 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003599/0.1348, allocations: 0.704 MB / 0.5657 GB, free: 11.21 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.724e-05/0.1348, allocations: 16.66 kB / 0.5657 GB, free: 11.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.022e-05/0.1349, allocations: 27.42 kB / 0.5657 GB, free: 11.17 MB / 430.1 MB Notification: Performance of SimCode: time 6.72e-07/0.1349, allocations: 0 / 0.5657 GB, free: 11.17 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01822/0.1531, allocations: 2.789 MB / 0.5685 GB, free: 8.453 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.83/7.983, allocations: 11.94 kB / 0.5685 GB, free: 8.441 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.972117834957317] Failed to read output from testmodel.py, exit status != 0: ['time', 'ramp.y', 'greaterThreshold.y', 'greaterEqualThreshold.y', 'lessThreshold.y', 'lessEqualThreshold.y'] 8.106481767026708 8.12104398 7.995906302 Calling exit ...