Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001541/0.001541, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.595/1.595, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 52.36 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1349, allocations: 49.43 MB / 350.1 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003613/0.1385, allocations: 1.664 MB / 351.8 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008919/0.1395, allocations: 291.1 kB / 352.1 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001204/0.1396, allocations: 7.938 kB / 352.1 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001601/0.1398, allocations: 19.75 kB / 352.1 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.005e-05/0.1398, allocations: 19.73 kB / 352.1 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004614/0.1403, allocations: 123.8 kB / 352.3 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004123/0.1407, allocations: 271.5 kB / 352.5 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003525/0.1411, allocations: 183 kB / 352.7 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001117/0.1412, allocations: 91.7 kB / 352.8 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001732/0.1414, allocations: 99.53 kB / 352.9 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.755e-05/0.1414, allocations: 24 kB / 352.9 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001034/0.1416, allocations: 35.98 kB / 353 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.444e-05/0.1416, allocations: 59.77 kB / 353 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001542/0.1418, allocations: 103.5 kB / 353.1 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003432/0.1421, allocations: 239.5 kB / 353.3 MB, free: 1.109 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.177e-06/0.1422, allocations: 8 kB / 353.4 MB, free: 1.102 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1422, allocations: 0 / 353.4 MB, free: 1.102 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.1422, allocations: 0 / 353.4 MB, free: 1.102 MB / 286.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.0009466/0.1431, allocations: 0.4947 MB / 353.8 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.622e-05/0.1432, allocations: 8.031 kB / 353.9 MB, free: 0.543 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.893e-05/0.1433, allocations: 54.73 kB / 353.9 MB, free: 492 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.572e-05/0.1434, allocations: 28.64 kB / 353.9 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003527/0.1437, allocations: 228 kB / 354.2 MB, free: 196 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.326e-05/0.1438, allocations: 24.94 kB / 354.2 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.193e-05/0.1439, allocations: 32.36 kB / 354.2 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000542/0.1444, allocations: 274.5 kB / 354.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.1444, allocations: 3.938 kB / 354.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.723e-05/0.1445, allocations: 15.94 kB / 354.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.1445, allocations: 8 kB / 354.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003737/0.1449, allocations: 165.6 kB / 354.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.1463, allocations: 0.9787 MB / 355.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003267/0.1466, allocations: 173.3 kB / 355.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.1468, allocations: 77.78 kB / 355.9 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.216e-05/0.1468, allocations: 8 kB / 355.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003589/0.1472, allocations: 137 kB / 356 MB, free: 14.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.443e-06/0.1472, allocations: 0 / 356 MB, free: 14.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005248/0.1477, allocations: 228.8 kB / 356.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.312e-05/0.1478, allocations: 81.11 kB / 356.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001627/0.148, allocations: 164.8 kB / 356.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.803e-05/0.1481, allocations: 37.64 kB / 356.5 MB, free: 13.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.1482, allocations: 140.5 kB / 356.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.6e-05/0.1483, allocations: 67.19 kB / 356.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.1484, allocations: 77.59 kB / 356.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.1486, allocations: 334.8 kB / 357.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.1487, allocations: 63.97 kB / 357.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.1489, allocations: 152.3 kB / 357.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002837/0.1492, allocations: 189 kB / 357.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.1492, allocations: 4 kB / 357.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004203/0.1497, allocations: 257.3 kB / 357.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.1497, allocations: 4 kB / 357.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.1497, allocations: 4 kB / 357.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.1497, allocations: 4 kB / 357.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001639/0.1499, allocations: 31.92 kB / 357.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.616e-05/0.1499, allocations: 4 kB / 357.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.15, allocations: 27.77 kB / 357.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.585e-05/0.1501, allocations: 16 kB / 357.9 MB, free: 12.22 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.localCondition,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.0001875/0.1503, allocations: 161.9 kB / 358 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.161e-05/0.1503, allocations: 19.73 kB / 358.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003833/0.1507, allocations: 186.4 kB / 358.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.1507, allocations: 0 / 358.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1507, allocations: 4 kB / 358.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.78e-06/0.1507, allocations: 0 / 358.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007973/0.1516, allocations: 0.6063 MB / 358.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.1516, allocations: 3.984 kB / 358.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.796e-05/0.1516, allocations: 15.94 kB / 358.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.1517, allocations: 3.938 kB / 358.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.1517, allocations: 8 kB / 358.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.1517, allocations: 3.984 kB / 358.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.1517, allocations: 0 / 358.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003313/0.152, allocations: 284.6 kB / 359.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.317e-05/0.1521, allocations: 96.8 kB / 359.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.902e-05/0.1521, allocations: 12 kB / 359.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.652e-05/0.1522, allocations: 11.98 kB / 359.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.897e-05/0.1523, allocations: 19.92 kB / 359.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.1523, allocations: 11.98 kB / 359.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.91e-05/0.1524, allocations: 99.27 kB / 359.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1524, allocations: 3.938 kB / 359.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003123/0.1527, allocations: 51.84 kB / 359.5 MB, free: 10.52 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: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,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 (26): * Single equations (assignments): 21 * 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.0007003/0.1534, allocations: 0.8301 MB / 360.3 MB, free: 9.656 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004204/0.1539, allocations: 204.3 kB / 360.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.1539, allocations: 4.188 kB / 360.5 MB, free: 9.453 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001463/0.154, allocations: 84.34 kB / 360.6 MB, free: 9.371 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.1544, allocations: 27.91 kB / 360.6 MB, free: 9.344 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002597/0.157, allocations: 2.077 MB / 362.7 MB, free: 7.129 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000484/0.1575, allocations: 0.7363 MB / 363.4 MB, free: 6.363 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.058e-05/0.1576, allocations: 17.95 kB / 363.4 MB, free: 6.344 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.1577, allocations: 67.41 kB / 363.5 MB, free: 6.277 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1577, allocations: 4 kB / 363.5 MB, free: 6.273 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05997/0.2177, allocations: 3.669 MB / 367.2 MB, free: 2.676 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.83/9.047, allocations: 8.906 kB / 367.2 MB, free: 2.672 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches