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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001693/0.001693, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002143/0.002143, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2378/0.2378, allocations: 46.11 MB / 344.2 MB, free: 11.54 MB / 286.1 MB 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.002382/0.002382, allocations: 91.36 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.116, allocations: 62.45 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003572/0.1196, allocations: 1.707 MB / 481.9 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005083/0.1202, allocations: 167.5 kB / 482.1 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.1203, allocations: 0 / 482.1 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.735e-05/0.1204, allocations: 7.875 kB / 482.1 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.614e-05/0.1205, allocations: 15.81 kB / 482.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004255/0.1209, allocations: 103.8 kB / 482.2 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001996/0.1211, allocations: 99.77 kB / 482.3 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.1213, allocations: 29.39 kB / 482.3 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.248e-05/0.1214, allocations: 39.91 kB / 482.4 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.232e-05/0.1215, allocations: 47.77 kB / 482.4 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.001e-05/0.1215, allocations: 8 kB / 482.4 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.534e-05/0.1216, allocations: 8 kB / 482.4 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.541e-05/0.1216, allocations: 23.92 kB / 482.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.789e-05/0.1217, allocations: 39.73 kB / 482.5 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001738/0.1218, allocations: 91.97 kB / 482.6 MB, free: 2.734 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1219, allocations: 3.938 kB / 482.6 MB, free: 2.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1219, allocations: 0 / 482.6 MB, free: 2.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.1219, allocations: 0 / 482.6 MB, free: 2.73 MB / 350.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.0008507/0.1227, allocations: 443.1 kB / 483 MB, free: 2.246 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.1228, allocations: 12.03 kB / 483 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.143e-05/0.1229, allocations: 38.73 kB / 483.1 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.102e-05/0.1229, allocations: 16.75 kB / 483.1 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002586/0.1232, allocations: 200.1 kB / 483.3 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.1232, allocations: 4.375 kB / 483.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.206e-05/0.1232, allocations: 12.38 kB / 483.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004135/0.1237, allocations: 154.3 kB / 483.4 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.1237, allocations: 3.938 kB / 483.4 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.983e-05/0.1237, allocations: 8 kB / 483.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.1237, allocations: 4 kB / 483.5 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000391/0.1241, allocations: 107.8 kB / 483.6 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000782/0.1249, allocations: 0.5438 MB / 484.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004307/0.1253, allocations: 138.4 kB / 484.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001933/0.1255, allocations: 60.83 kB / 484.3 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.1256, allocations: 0 / 484.3 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.1256, allocations: 34.56 kB / 484.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.1256, allocations: 4 kB / 484.3 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006645/0.1263, allocations: 177.5 kB / 484.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.836e-05/0.1264, allocations: 110.8 kB / 484.6 MB, free: 472 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.1265, allocations: 144.1 kB / 484.8 MB, free: 320 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.1266, allocations: 33.7 kB / 484.8 MB, free: 280 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.78e-05/0.1267, allocations: 108 kB / 484.9 MB, free: 168 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.891e-05/0.1267, allocations: 27.72 kB / 484.9 MB, free: 140 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.166e-05/0.1268, allocations: 25.7 kB / 485 MB, free: 108 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.1269, allocations: 322.8 kB / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.1271, allocations: 47.95 kB / 485.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002164/0.1274, allocations: 88.23 kB / 485.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003654/0.1277, allocations: 114.5 kB / 485.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1277, allocations: 0 / 485.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004386/0.1282, allocations: 149.4 kB / 485.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.1282, allocations: 8.062 kB / 485.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1282, allocations: 0 / 485.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.1283, allocations: 192 / 485.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001557/0.1284, allocations: 27.97 kB / 485.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.1284, allocations: 4.328 kB / 485.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.1286, allocations: 31.91 kB / 485.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.1286, allocations: 4 kB / 485.7 MB, free: 15.29 MB / 366.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.0001345/0.1288, allocations: 125.8 kB / 485.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.991e-05/0.1288, allocations: 11.91 kB / 485.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.301e-05/0.1289, allocations: 8.719 kB / 485.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1289, allocations: 0 / 485.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.1289, allocations: 4 kB / 485.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.1289, allocations: 3.938 kB / 485.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002472/0.1291, allocations: 213.4 kB / 486.1 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.1291, allocations: 4 kB / 486.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001177/0.1293, allocations: 23.97 kB / 486.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.1293, allocations: 4 kB / 486.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.1293, allocations: 0 / 486.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1293, allocations: 3.938 kB / 486.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.1293, allocations: 3.984 kB / 486.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004688/0.1298, allocations: 247.2 kB / 486.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.689e-05/0.1299, allocations: 85.02 kB / 486.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.559e-05/0.1299, allocations: 3.984 kB / 486.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.1301, allocations: 27.97 kB / 486.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.732e-05/0.1301, allocations: 3.938 kB / 486.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.1301, allocations: 11.97 kB / 486.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.015e-05/0.1302, allocations: 105.8 kB / 486.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1302, allocations: 0 / 486.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002393/0.1305, allocations: 20 kB / 486.6 MB, free: 14.3 MB / 366.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.0007744/0.1313, allocations: 0.7709 MB / 487.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004615/0.1317, allocations: 115.8 kB / 487.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1317, allocations: 0 / 487.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001883/0.1319, allocations: 56.08 kB / 487.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003756/0.1323, allocations: 40.44 kB / 487.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002364/0.1347, allocations: 1.657 MB / 489.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000307/0.135, allocations: 0.6924 MB / 490 MB, free: 10.83 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.948e-05/0.1351, allocations: 12.66 kB / 490 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.084e-05/0.1352, allocations: 39.42 kB / 490 MB, free: 10.78 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1352, allocations: 0 / 490 MB, free: 10.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02473/0.1599, allocations: 2.691 MB / 492.7 MB, free: 8.148 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.05/8.21, allocations: 27.2 kB / 492.7 MB, free: 8.129 MB / 366.1 MB (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)