Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",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.001274/0.001274, allocations: 104.5 kB / 17.58 MB, free: 5.426 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.001222/0.001222, allocations: 191.9 kB / 18.5 MB, free: 4.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.948/1.948, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002128/0.002128, allocations: 51.92 kB / 280.7 MB, free: 3.105 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1366, allocations: 46.63 MB / 327.4 MB, free: 4.406 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00541/0.1421, allocations: 1.683 MB / 329.1 MB, free: 2.699 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.1432, allocations: 259.2 kB / 329.3 MB, free: 2.445 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002042/0.1434, allocations: 7.938 kB / 329.3 MB, free: 2.438 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001899/0.1436, allocations: 31.67 kB / 329.3 MB, free: 2.406 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001143/0.1438, allocations: 11.81 kB / 329.4 MB, free: 2.395 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000645/0.1444, allocations: 119.8 kB / 329.5 MB, free: 2.277 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004512/0.1449, allocations: 259.5 kB / 329.7 MB, free: 2.023 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000482/0.1454, allocations: 201.4 kB / 329.9 MB, free: 1.828 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001766/0.1456, allocations: 83.72 kB / 330 MB, free: 1.746 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001912/0.1458, allocations: 99.53 kB / 330.1 MB, free: 1.648 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.534e-05/0.1458, allocations: 24 kB / 330.1 MB, free: 1.625 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001199/0.1459, allocations: 31.98 kB / 330.2 MB, free: 1.594 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.771e-05/0.146, allocations: 55.84 kB / 330.2 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001578/0.1462, allocations: 99.45 kB / 330.3 MB, free: 1.441 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004299/0.1466, allocations: 235.5 kB / 330.5 MB, free: 1.211 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.1467, allocations: 0 / 330.5 MB, free: 1.211 MB / 270.1 MB Notification: Performance of FrontEnd: time 6.302e-06/0.1467, allocations: 0 / 330.5 MB, free: 1.211 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.693e-05/0.1467, allocations: 7.938 kB / 330.5 MB, free: 1.203 MB / 270.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.001074/0.1478, allocations: 494 kB / 331 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.203e-05/0.1479, allocations: 8.031 kB / 331 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.927e-05/0.148, allocations: 58.73 kB / 331.1 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.904e-05/0.1481, allocations: 24.66 kB / 331.1 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003964/0.1485, allocations: 232.1 kB / 331.3 MB, free: 308 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.012e-05/0.1485, allocations: 20.94 kB / 331.4 MB, free: 284 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.648e-05/0.1486, allocations: 28.38 kB / 331.4 MB, free: 256 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005873/0.1492, allocations: 278.6 kB / 331.7 MB, free: 15.96 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.1492, allocations: 3.938 kB / 331.7 MB, free: 15.95 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.865e-05/0.1493, allocations: 8 kB / 331.7 MB, free: 15.95 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.1493, allocations: 11.98 kB / 331.7 MB, free: 15.93 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003464/0.1496, allocations: 165.5 kB / 331.8 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001578/0.1512, allocations: 0.9672 MB / 332.8 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003369/0.1516, allocations: 158.6 kB / 333 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.1517, allocations: 76.92 kB / 333 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.1517, allocations: 7.938 kB / 333.1 MB, free: 14.49 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002994/0.152, allocations: 111.3 kB / 333.2 MB, free: 14.37 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 4.999e-06/0.1521, allocations: 3.984 kB / 333.2 MB, free: 14.37 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004367/0.1525, allocations: 213.2 kB / 333.4 MB, free: 14.15 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.723e-05/0.1526, allocations: 59.41 kB / 333.4 MB, free: 14.08 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.1527, allocations: 150.8 kB / 333.6 MB, free: 13.93 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.013e-05/0.1528, allocations: 45.69 kB / 333.6 MB, free: 13.88 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.1529, allocations: 136.5 kB / 333.8 MB, free: 13.74 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.11e-05/0.1529, allocations: 59.28 kB / 333.8 MB, free: 13.68 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.1531, allocations: 85.91 kB / 333.9 MB, free: 13.59 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.1532, allocations: 330.8 kB / 334.2 MB, free: 13.26 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.1533, allocations: 60.62 kB / 334.3 MB, free: 13.2 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/0.1535, allocations: 141.8 kB / 334.4 MB, free: 13.03 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002944/0.1538, allocations: 196.3 kB / 334.6 MB, free: 12.81 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.1538, allocations: 0 / 334.6 MB, free: 12.81 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004071/0.1542, allocations: 241.3 kB / 334.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.1543, allocations: 8 kB / 334.9 MB, free: 12.56 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.1543, allocations: 288 / 334.9 MB, free: 12.56 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.1543, allocations: 8 kB / 334.9 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.1544, allocations: 35.92 kB / 334.9 MB, free: 12.52 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.1545, allocations: 7.984 kB / 334.9 MB, free: 12.51 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.1546, allocations: 27.69 kB / 334.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.406e-05/0.1546, allocations: 16 kB / 334.9 MB, free: 12.46 MB / 286.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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0001682/0.1548, allocations: 156.3 kB / 335.1 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.053e-05/0.1549, allocations: 11.81 kB / 335.1 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003653/0.1552, allocations: 194.4 kB / 335.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.1552, allocations: 0 / 335.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.1553, allocations: 0 / 335.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.1553, allocations: 7.984 kB / 335.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007405/0.156, allocations: 0.5832 MB / 335.9 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.156, allocations: 3.984 kB / 335.9 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.338e-05/0.1561, allocations: 19.88 kB / 335.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.1561, allocations: 0 / 335.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.1561, allocations: 15.94 kB / 335.9 MB, free: 11.4 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.1562, allocations: 0 / 335.9 MB, free: 11.4 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1562, allocations: 3.984 kB / 335.9 MB, free: 11.4 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003107/0.1565, allocations: 264.2 kB / 336.2 MB, free: 11.12 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.824e-05/0.1566, allocations: 96.8 kB / 336.3 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.099e-05/0.1566, allocations: 11.98 kB / 336.3 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.056e-05/0.1567, allocations: 8 kB / 336.3 MB, free: 10.99 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.035e-05/0.1568, allocations: 27.91 kB / 336.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.76e-05/0.1568, allocations: 11.94 kB / 336.3 MB, free: 10.95 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.599e-05/0.1569, allocations: 95.97 kB / 336.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1569, allocations: 0 / 336.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003274/0.1572, allocations: 51.84 kB / 336.5 MB, free: 10.81 MB / 286.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: 19 (step.localActive,transition1.enableFire,step.active,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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0008001/0.158, allocations: 0.8298 MB / 337.3 MB, free: 9.953 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000438/0.1585, allocations: 199.7 kB / 337.5 MB, free: 9.758 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1585, allocations: 0 / 337.5 MB, free: 9.758 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001523/0.1587, allocations: 83.89 kB / 337.6 MB, free: 9.676 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.159, allocations: 19.98 kB / 337.6 MB, free: 9.656 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002935/0.162, allocations: 2.024 MB / 339.6 MB, free: 7.496 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000432/0.1624, allocations: 0.7402 MB / 340.4 MB, free: 6.73 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001009/0.1625, allocations: 25.94 kB / 340.4 MB, free: 6.707 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.1627, allocations: 59.42 kB / 340.5 MB, free: 6.648 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1627, allocations: 0 / 340.5 MB, free: 6.648 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02648/0.1891, allocations: 3.598 MB / 344.1 MB, free: 2.996 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.916/8.105, allocations: 15.73 kB / 344.1 MB, free: 2.98 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches