Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002246/0.002246, allocations: 112.3 kB / 17.74 MB, free: 5.293 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.002541/0.002542, allocations: 187 kB / 18.67 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.201/3.201, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002664/0.002664, allocations: 47.91 kB / 351.9 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.726/0.7287, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.007707/0.7364, allocations: 1.699 MB / 403.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001228/0.7377, allocations: 287.2 kB / 403.4 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001983/0.7379, allocations: 7.938 kB / 403.4 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002234/0.7382, allocations: 31.67 kB / 403.4 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001324/0.7384, allocations: 15.75 kB / 403.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007021/0.7391, allocations: 119.8 kB / 403.5 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005985/0.7397, allocations: 275.4 kB / 403.8 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005242/0.7403, allocations: 181.5 kB / 404 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002038/0.7405, allocations: 91.69 kB / 404.1 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002362/0.7407, allocations: 107.5 kB / 404.2 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.877e-05/0.7408, allocations: 24 kB / 404.2 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001255/0.741, allocations: 31.98 kB / 404.2 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000123/0.7411, allocations: 47.91 kB / 404.3 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000188/0.7413, allocations: 107.5 kB / 404.4 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004734/0.7418, allocations: 255.1 kB / 404.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.7418, allocations: 0 / 404.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.7419, allocations: 0 / 404.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.7419, allocations: 0 / 404.6 MB, free: 5.625 MB / 318.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.0009858/0.7429, allocations: 499.8 kB / 405.1 MB, free: 5.086 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/0.7429, allocations: 11.89 kB / 405.1 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.7431, allocations: 24.66 kB / 405.1 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004763/0.7436, allocations: 240 kB / 405.4 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.463e-05/0.7436, allocations: 20.94 kB / 405.4 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.2e-05/0.7437, allocations: 32.38 kB / 405.4 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000758/0.7445, allocations: 274.5 kB / 405.7 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.7445, allocations: 192 / 405.7 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.259e-05/0.7446, allocations: 11.94 kB / 405.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.908e-05/0.7446, allocations: 8 kB / 405.7 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005498/0.7452, allocations: 161.6 kB / 405.9 MB, free: 4.262 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001968/0.7472, allocations: 0.971 MB / 406.9 MB, free: 3.227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005029/0.7477, allocations: 173.5 kB / 407 MB, free: 3.039 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002142/0.7479, allocations: 81.62 kB / 407.1 MB, free: 2.953 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.839e-05/0.748, allocations: 7.984 kB / 407.1 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003747/0.7484, allocations: 145 kB / 407.2 MB, free: 2.785 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 3.947e-06/0.7484, allocations: 0 / 407.2 MB, free: 2.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008121/0.7492, allocations: 219 kB / 407.5 MB, free: 2.566 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.7493, allocations: 81.11 kB / 407.5 MB, free: 2.469 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001854/0.7495, allocations: 153.5 kB / 407.7 MB, free: 2.309 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.089e-05/0.7496, allocations: 41.7 kB / 407.7 MB, free: 2.262 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.7497, allocations: 140.5 kB / 407.9 MB, free: 2.121 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.465e-05/0.7498, allocations: 51.34 kB / 407.9 MB, free: 2.07 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001836/0.75, allocations: 85.72 kB / 408 MB, free: 1.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.7502, allocations: 334.8 kB / 408.3 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002385/0.7505, allocations: 63.97 kB / 408.4 MB, free: 1.582 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003/0.7508, allocations: 140.3 kB / 408.5 MB, free: 1.414 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004848/0.7513, allocations: 200.8 kB / 408.7 MB, free: 1.188 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.7513, allocations: 3.938 kB / 408.7 MB, free: 1.184 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007376/0.7521, allocations: 249.2 kB / 409 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.7521, allocations: 8 kB / 409 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.7521, allocations: 288 / 409 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.7522, allocations: 12 kB / 409 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.7525, allocations: 35.92 kB / 409 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.441e-05/0.7525, allocations: 4 kB / 409 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002021/0.7527, allocations: 27.77 kB / 409.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.297e-05/0.7528, allocations: 16 kB / 409.1 MB, free: 0.832 MB / 318.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.0002281/0.753, allocations: 161.6 kB / 409.2 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.634e-05/0.7531, allocations: 15.81 kB / 409.2 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000611/0.7537, allocations: 186.4 kB / 409.4 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/0.7537, allocations: 4 kB / 409.4 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.7538, allocations: 0 / 409.4 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.7538, allocations: 3.984 kB / 409.4 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001382/0.7552, allocations: 0.5949 MB / 410 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.7552, allocations: 0 / 410 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000144/0.7554, allocations: 15.94 kB / 410 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.094e-05/0.7554, allocations: 4 kB / 410.1 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.027e-05/0.7554, allocations: 11.92 kB / 410.1 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.243e-06/0.7555, allocations: 11.94 kB / 410.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.7555, allocations: 0 / 410.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005941/0.7561, allocations: 283.8 kB / 410.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.602e-05/0.7562, allocations: 92.95 kB / 410.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.013e-05/0.7563, allocations: 7.938 kB / 410.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001923/0.7565, allocations: 11.98 kB / 410.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.7566, allocations: 23.98 kB / 410.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.92e-05/0.7566, allocations: 11.97 kB / 410.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.921e-05/0.7567, allocations: 97.52 kB / 410.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.7568, allocations: 0 / 410.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005866/0.7574, allocations: 51.84 kB / 410.6 MB, free: 15.14 MB / 334.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,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: 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.0002194/0.7576, allocations: 115.1 kB / 410.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005647/0.7582, allocations: 184.5 kB / 410.9 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.7582, allocations: 8 kB / 410.9 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002336/0.7584, allocations: 88.28 kB / 411 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004864/0.7589, allocations: 23.09 kB / 411.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009481/0.7599, allocations: 390.4 kB / 411.4 MB, free: 14.31 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.7603, allocations: 0.7324 MB / 412.2 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.7605, allocations: 27.44 kB / 412.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of SimCode: time 5e-07/0.7605, allocations: 0 / 412.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of Templates: time 0.01138/0.7719, allocations: 2.436 MB / 414.6 MB, free: 11.08 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches