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: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.001258/0.001258, allocations: 192 kB / 18.62 MB, free: 4.434 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.442/1.442, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001073, allocations: 51.83 kB / 302 MB, free: 5.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1332, allocations: 49.45 MB / 351.5 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003799/0.1371, allocations: 1.658 MB / 353.1 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009101/0.138, allocations: 287.1 kB / 353.4 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.1382, allocations: 3.938 kB / 353.4 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001631/0.1383, allocations: 31.73 kB / 353.5 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.66e-05/0.1384, allocations: 19.75 kB / 353.5 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004404/0.1388, allocations: 111.8 kB / 353.6 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003579/0.1392, allocations: 275.4 kB / 353.9 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000353/0.1396, allocations: 186.9 kB / 354 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.1397, allocations: 91.69 kB / 354.1 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001571/0.1399, allocations: 107.5 kB / 354.2 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.3e-05/0.1399, allocations: 24 kB / 354.3 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.531e-05/0.14, allocations: 32 kB / 354.3 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.584e-05/0.1401, allocations: 59.83 kB / 354.3 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.1402, allocations: 103.5 kB / 354.4 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003225/0.1406, allocations: 255.1 kB / 354.7 MB, free: 500 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.1406, allocations: 0 / 354.7 MB, free: 500 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1406, allocations: 0 / 354.7 MB, free: 500 kB / 286.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.1406, allocations: 0 / 354.7 MB, free: 500 kB / 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.0008947/0.1415, allocations: 494.5 kB / 355.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.1416, allocations: 15.89 kB / 355.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.308e-05/0.1417, allocations: 28.66 kB / 355.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004363/0.1421, allocations: 236 kB / 355.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.692e-05/0.1422, allocations: 32.86 kB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.218e-05/0.1422, allocations: 32.36 kB / 355.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005039/0.1427, allocations: 262.6 kB / 355.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.1428, allocations: 192 / 355.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.002e-05/0.1428, allocations: 19.94 kB / 355.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.1428, allocations: 7.984 kB / 355.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003247/0.1432, allocations: 169.5 kB / 356 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001386/0.1445, allocations: 0.9633 MB / 356.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000296/0.1449, allocations: 173.3 kB / 357.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.145, allocations: 85.66 kB / 357.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.145, allocations: 8 kB / 357.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002126/0.1452, allocations: 141 kB / 357.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.1452, allocations: 0 / 357.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004633/0.1457, allocations: 224.8 kB / 357.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.375e-05/0.1458, allocations: 85.11 kB / 357.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.146, allocations: 156.4 kB / 357.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.163e-05/0.146, allocations: 41.83 kB / 357.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.487e-05/0.1461, allocations: 136.5 kB / 358 MB, free: 12.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000126/0.1462, allocations: 67.19 kB / 358 MB, free: 12.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.904e-05/0.1464, allocations: 77.62 kB / 358.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002029/0.1466, allocations: 330.8 kB / 358.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.1467, allocations: 67.91 kB / 358.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.1469, allocations: 148.3 kB / 358.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002671/0.1471, allocations: 193 kB / 358.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.1472, allocations: 4 kB / 358.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003924/0.1476, allocations: 257.3 kB / 359.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.1476, allocations: 4 kB / 359.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.1476, allocations: 4 kB / 359.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.477e-05/0.1476, allocations: 4 kB / 359.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.1478, allocations: 35.92 kB / 359.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.1478, allocations: 4 kB / 359.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.1479, allocations: 31.67 kB / 359.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.835e-05/0.1479, allocations: 12 kB / 359.2 MB, free: 11.67 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.000171/0.1481, allocations: 169.8 kB / 359.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.659e-05/0.1482, allocations: 15.81 kB / 359.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003474/0.1485, allocations: 190.3 kB / 359.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.1485, allocations: 4 kB / 359.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.1485, allocations: 0 / 359.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.1486, allocations: 7.984 kB / 359.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007978/0.1494, allocations: 0.5906 MB / 360.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1494, allocations: 0 / 360.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.297e-05/0.1495, allocations: 23.94 kB / 360.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1495, allocations: 0 / 360.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.1495, allocations: 11.92 kB / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.44e-06/0.1495, allocations: 0 / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1495, allocations: 3.938 kB / 360.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003843/0.1499, allocations: 284.6 kB / 360.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.549e-05/0.15, allocations: 92.86 kB / 360.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.339e-05/0.15, allocations: 15.94 kB / 360.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.051e-05/0.1501, allocations: 11.98 kB / 360.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.482e-05/0.1502, allocations: 15.98 kB / 360.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.1502, allocations: 11.98 kB / 360.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.318e-05/0.1503, allocations: 95.27 kB / 360.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1503, allocations: 3.938 kB / 360.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003114/0.1506, allocations: 51.84 kB / 360.7 MB, free: 9.973 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.0001793/0.1508, allocations: 111.2 kB / 360.9 MB, free: 9.855 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003791/0.1512, allocations: 192 kB / 361 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1512, allocations: 0 / 361 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001433/0.1514, allocations: 87.84 kB / 361.1 MB, free: 9.582 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003088/0.1517, allocations: 31.92 kB / 361.2 MB, free: 9.551 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007359/0.1524, allocations: 341.2 kB / 361.5 MB, free: 9.191 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/0.1528, allocations: 0.7402 MB / 362.2 MB, free: 8.422 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.72e-05/0.1529, allocations: 25.89 kB / 362.3 MB, free: 8.395 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.307e-05/0.153, allocations: 27.42 kB / 362.3 MB, free: 8.367 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.153, allocations: 0 / 362.3 MB, free: 8.367 MB / 302.1 MB Notification: Performance of Templates: time 0.005998/0.159, allocations: 1.883 MB / 364.2 MB, free: 6.492 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (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 & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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