Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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) 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(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001245/0.001246, allocations: 108 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001585/0.001585, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.4 MB / 246.3 MB, free: 10.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 64.67 kB / 306.3 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.121, allocations: 50.52 MB / 356.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003377/0.1244, allocations: 1.811 MB / 358.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007516/0.1252, allocations: 295.1 kB / 359 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.1254, allocations: 4 kB / 359 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001525/0.1256, allocations: 19.8 kB / 359 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.211e-05/0.1257, allocations: 15.91 kB / 359 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003771/0.126, allocations: 99.91 kB / 359.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003363/0.1264, allocations: 251.5 kB / 359.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003336/0.1267, allocations: 173.8 kB / 359.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001233/0.1269, allocations: 87.7 kB / 359.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001552/0.127, allocations: 99.47 kB / 359.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.185e-05/0.1271, allocations: 16 kB / 359.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.415e-05/0.1271, allocations: 19.98 kB / 359.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.018e-05/0.1272, allocations: 47.84 kB / 359.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.1273, allocations: 107.4 kB / 359.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002746/0.1276, allocations: 207.7 kB / 360.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1276, allocations: 4 kB / 360.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.1276, allocations: 0 / 360.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.1277, allocations: 0 / 360.1 MB, free: 11.18 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007695/0.1284, allocations: 496.9 kB / 360.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.1285, allocations: 8.031 kB / 360.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.103e-05/0.1286, allocations: 62.72 kB / 360.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002389/0.1288, allocations: 28.66 kB / 360.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000275/0.1291, allocations: 228 kB / 360.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.509e-05/0.1292, allocations: 24.94 kB / 360.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.131e-05/0.1292, allocations: 32.31 kB / 361 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004646/0.1297, allocations: 270.6 kB / 361.2 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.1297, allocations: 3.938 kB / 361.2 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.1297, allocations: 12 kB / 361.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.1297, allocations: 4 kB / 361.2 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003172/0.1301, allocations: 165.6 kB / 361.4 MB, free: 9.742 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001347/0.1314, allocations: 0.9595 MB / 362.4 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003246/0.1318, allocations: 183.5 kB / 362.5 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.1319, allocations: 93.08 kB / 362.6 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.332e-05/0.1319, allocations: 0 / 362.6 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002693/0.1322, allocations: 148.2 kB / 362.8 MB, free: 8.266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.663e-06/0.1322, allocations: 0 / 362.8 MB, free: 8.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004679/0.1327, allocations: 221.2 kB / 363 MB, free: 8.043 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.886e-05/0.1328, allocations: 85.09 kB / 363.1 MB, free: 7.941 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.1329, allocations: 157.5 kB / 363.2 MB, free: 7.781 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.1329, allocations: 37.83 kB / 363.3 MB, free: 7.738 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.703e-05/0.133, allocations: 136.5 kB / 363.4 MB, free: 7.602 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.65e-05/0.1331, allocations: 71.17 kB / 363.5 MB, free: 7.531 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.1332, allocations: 69.69 kB / 363.5 MB, free: 7.457 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.1333, allocations: 330.8 kB / 363.9 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.1335, allocations: 67.75 kB / 363.9 MB, free: 7.059 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001573/0.1336, allocations: 140.5 kB / 364.1 MB, free: 6.891 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002605/0.1339, allocations: 196.9 kB / 364.3 MB, free: 6.668 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1339, allocations: 0 / 364.3 MB, free: 6.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003962/0.1343, allocations: 253.5 kB / 364.5 MB, free: 6.414 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.1343, allocations: 8 kB / 364.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.1343, allocations: 0 / 364.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.1344, allocations: 7.938 kB / 364.5 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.1345, allocations: 39.91 kB / 364.6 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.1345, allocations: 4 kB / 364.6 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.1346, allocations: 23.75 kB / 364.6 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.17e-05/0.1347, allocations: 12 kB / 364.6 MB, free: 6.32 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.condition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0001635/0.1348, allocations: 170.7 kB / 364.8 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.597e-05/0.1349, allocations: 11.81 kB / 364.8 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.538e-05/0.1349, allocations: 20.84 kB / 364.8 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.1349, allocations: 4 kB / 364.8 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.135, allocations: 0 / 364.8 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.135, allocations: 3.984 kB / 364.8 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007244/0.1357, allocations: 0.5724 MB / 365.4 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.1357, allocations: 4 kB / 365.4 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.493e-05/0.1358, allocations: 15.94 kB / 365.4 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.405e-06/0.1358, allocations: 3.938 kB / 365.4 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.788e-05/0.1358, allocations: 15.92 kB / 365.4 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.1358, allocations: 0 / 365.4 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.1358, allocations: 0 / 365.4 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000302/0.1361, allocations: 279.5 kB / 365.7 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.015e-05/0.1362, allocations: 100.8 kB / 365.8 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.68e-05/0.1362, allocations: 3.938 kB / 365.8 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.304e-05/0.1363, allocations: 8 kB / 365.8 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.815e-05/0.1364, allocations: 19.97 kB / 365.8 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.159e-05/0.1364, allocations: 8 kB / 365.8 MB, free: 4.988 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.737e-05/0.1365, allocations: 95.27 kB / 365.9 MB, free: 4.895 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1365, allocations: 4 kB / 365.9 MB, free: 4.891 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003092/0.1368, allocations: 47.84 kB / 366 MB, free: 4.844 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.active,transition1.enableFire,step.localActive,initialStep.localActive,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006312/0.1375, allocations: 0.8106 MB / 366.8 MB, free: 4.004 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003186/0.1378, allocations: 171.7 kB / 366.9 MB, free: 3.836 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1378, allocations: 4.562 kB / 366.9 MB, free: 3.832 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.1379, allocations: 85.27 kB / 367 MB, free: 3.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002941/0.1382, allocations: 27.92 kB / 367.1 MB, free: 3.723 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/0.1406, allocations: 2.107 MB / 369.2 MB, free: 1.473 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.1409, allocations: 0.7368 MB / 369.9 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.793e-05/0.141, allocations: 21.94 kB / 369.9 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.1412, allocations: 59.42 kB / 370 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1412, allocations: 0 / 370 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2319/0.373, allocations: 3.198 MB / 373.2 MB, free: 19.55 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002153/0.3733, allocations: 202 kB / 373.4 MB, free: 19.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.804/2.177, allocations: 5.062 kB / 373.4 MB, free: 19.29 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches