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.001539/0.001539, allocations: 107.1 kB / 16.62 MB, free: 6.812 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.001522/0.001523, allocations: 189.9 kB / 17.55 MB, free: 5.953 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.503/1.503, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001346, allocations: 50.19 kB / 300.2 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1404, allocations: 49.44 MB / 349.7 MB, free: 4.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004089/0.1445, allocations: 1.748 MB / 351.4 MB, free: 2.918 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007904/0.1453, allocations: 311.1 kB / 351.7 MB, free: 2.613 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.1455, allocations: 7.938 kB / 351.7 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001523/0.1456, allocations: 11.86 kB / 351.7 MB, free: 2.594 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.7e-05/0.1457, allocations: 11.88 kB / 351.8 MB, free: 2.582 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004534/0.1462, allocations: 107.9 kB / 351.9 MB, free: 2.477 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003354/0.1465, allocations: 271.5 kB / 352.1 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003226/0.1468, allocations: 183 kB / 352.3 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.147, allocations: 91.7 kB / 352.4 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.1471, allocations: 103.5 kB / 352.5 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.048e-05/0.1472, allocations: 24 kB / 352.5 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.976e-05/0.1472, allocations: 35.98 kB / 352.6 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.995e-05/0.1473, allocations: 55.83 kB / 352.6 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.1475, allocations: 111.4 kB / 352.7 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002957/0.1478, allocations: 239.5 kB / 352.9 MB, free: 1.379 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.1478, allocations: 0 / 352.9 MB, free: 1.379 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1478, allocations: 0 / 352.9 MB, free: 1.379 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.1478, allocations: 0 / 352.9 MB, free: 1.379 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.000826/0.1486, allocations: 0.4947 MB / 353.4 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.1487, allocations: 8.031 kB / 353.5 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.234e-05/0.1488, allocations: 62.72 kB / 353.5 MB, free: 0.75 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.598e-05/0.1488, allocations: 28.66 kB / 353.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000285/0.1491, allocations: 228 kB / 353.8 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.449e-05/0.1492, allocations: 24.94 kB / 353.8 MB, free: 448 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.191e-05/0.1492, allocations: 28.38 kB / 353.8 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004755/0.1497, allocations: 274.5 kB / 354.1 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.1497, allocations: 7.938 kB / 354.1 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.672e-05/0.1498, allocations: 7.984 kB / 354.1 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.1498, allocations: 8 kB / 354.1 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003134/0.1501, allocations: 161.6 kB / 354.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.1513, allocations: 0.9787 MB / 355.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002791/0.1516, allocations: 181.2 kB / 355.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.1517, allocations: 81.72 kB / 355.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.1517, allocations: 7.938 kB / 355.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003101/0.152, allocations: 141 kB / 355.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.973e-06/0.152, allocations: 3.938 kB / 355.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004412/0.1525, allocations: 226.5 kB / 355.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.207e-05/0.1526, allocations: 89.11 kB / 356 MB, free: 14.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.1527, allocations: 161.1 kB / 356.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.405e-05/0.1527, allocations: 33.7 kB / 356.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.1529, allocations: 144.7 kB / 356.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.451e-05/0.1529, allocations: 63.19 kB / 356.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.153, allocations: 85.58 kB / 356.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002463/0.1533, allocations: 326.8 kB / 356.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.1534, allocations: 59.97 kB / 356.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000264/0.1537, allocations: 148.5 kB / 357 MB, free: 13.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002596/0.1539, allocations: 189 kB / 357.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.154, allocations: 4 kB / 357.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003702/0.1543, allocations: 249.5 kB / 357.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.1544, allocations: 8.031 kB / 357.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.1544, allocations: 4 kB / 357.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.1544, allocations: 4 kB / 357.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.1545, allocations: 39.86 kB / 357.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.637e-06/0.1546, allocations: 4 kB / 357.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.99e-05/0.1547, allocations: 27.77 kB / 357.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.047e-05/0.1547, allocations: 12 kB / 357.5 MB, free: 12.49 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.0001451/0.1548, allocations: 161.7 kB / 357.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.611e-05/0.1549, allocations: 15.81 kB / 357.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00033/0.1552, allocations: 190.3 kB / 357.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.1552, allocations: 8 kB / 357.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1552, allocations: 0 / 357.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.1553, allocations: 3.984 kB / 357.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007162/0.156, allocations: 0.5947 MB / 358.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.156, allocations: 0 / 358.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.214e-05/0.1561, allocations: 20 kB / 358.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.624e-06/0.1561, allocations: 7.938 kB / 358.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.1561, allocations: 7.922 kB / 358.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.1561, allocations: 4 kB / 358.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1561, allocations: 0 / 358.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002967/0.1564, allocations: 292.4 kB / 358.8 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.349e-05/0.1565, allocations: 92.89 kB / 358.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.734e-05/0.1565, allocations: 8 kB / 358.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.796e-05/0.1566, allocations: 11.98 kB / 358.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.519e-05/0.1567, allocations: 23.97 kB / 358.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.1567, allocations: 4 kB / 358.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.28e-05/0.1568, allocations: 95.27 kB / 359 MB, free: 10.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1568, allocations: 3.938 kB / 359 MB, free: 10.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003017/0.1571, allocations: 55.75 kB / 359.1 MB, free: 10.79 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.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$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 (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.0006129/0.1577, allocations: 0.834 MB / 359.9 MB, free: 9.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000355/0.1581, allocations: 199.7 kB / 360.1 MB, free: 9.734 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1581, allocations: 0.5625 kB / 360.1 MB, free: 9.734 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.1582, allocations: 88.34 kB / 360.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.1585, allocations: 23.11 kB / 360.2 MB, free: 9.629 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0023/0.1609, allocations: 2.145 MB / 362.3 MB, free: 7.348 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.1612, allocations: 0.7402 MB / 363.1 MB, free: 6.582 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.013e-05/0.1613, allocations: 21.94 kB / 363.1 MB, free: 6.559 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.1614, allocations: 63.42 kB / 363.2 MB, free: 6.496 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1614, allocations: 0 / 363.2 MB, free: 6.496 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01505/0.1765, allocations: 3.568 MB / 366.7 MB, free: 3.043 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002382/0.1768, allocations: 195 kB / 366.9 MB, free: 2.793 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.003/2.18, allocations: 3.938 kB / 366.9 MB, free: 2.789 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