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.0008937/0.0008937, allocations: 93.16 kB / 17.31 MB, free: 6.535 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.0009724/0.0009725, allocations: 174.8 kB / 18.21 MB, free: 5.684 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.272/1.272, allocations: 223.3 MB / 242.3 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000229/0.0002291, allocations: 4.875 kB / 302.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07227/0.07252, allocations: 50.41 MB / 352.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001556/0.07411, allocations: 1.413 MB / 353.9 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005711/0.07469, allocations: 299.2 kB / 354.2 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.583e-05/0.07478, allocations: 4 kB / 354.2 MB, free: 1.973 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.982e-05/0.07488, allocations: 23.8 kB / 354.2 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.628e-05/0.07492, allocations: 3.938 kB / 354.2 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003136/0.07524, allocations: 103.9 kB / 354.3 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002642/0.07552, allocations: 259.5 kB / 354.6 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002391/0.07576, allocations: 155.4 kB / 354.7 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.721e-05/0.07585, allocations: 75.64 kB / 354.8 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001032/0.07596, allocations: 83.55 kB / 354.9 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.445e-05/0.07599, allocations: 8 kB / 354.9 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.791e-05/0.07605, allocations: 23.98 kB / 354.9 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.672e-05/0.07611, allocations: 39.84 kB / 354.9 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.116e-05/0.07621, allocations: 113.2 kB / 355.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001697/0.07639, allocations: 163.6 kB / 355.2 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.0764, allocations: 0 / 355.2 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.07641, allocations: 0 / 355.2 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.07641, allocations: 0 / 355.2 MB, free: 0.9219 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.0005221/0.07694, allocations: 454.9 kB / 355.7 MB, free: 436 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.899e-05/0.07698, allocations: 12.03 kB / 355.7 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.014e-05/0.07703, allocations: 20.75 kB / 355.7 MB, free: 404 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002006/0.07724, allocations: 232 kB / 355.9 MB, free: 132 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.002e-05/0.07728, allocations: 20.94 kB / 355.9 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.052e-05/0.07733, allocations: 28.38 kB / 356 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004252/0.07776, allocations: 274.5 kB / 356.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.07778, allocations: 3.938 kB / 356.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.526e-05/0.07781, allocations: 16 kB / 356.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.07782, allocations: 4 kB / 356.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002966/0.07813, allocations: 173.5 kB / 356.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.07915, allocations: 0.9865 MB / 357.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002666/0.07942, allocations: 173.4 kB / 357.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.07955, allocations: 81.69 kB / 357.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.07958, allocations: 4 kB / 357.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002182/0.0798, allocations: 144.2 kB / 357.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.07981, allocations: 0 / 357.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.000403/0.08022, allocations: 225.1 kB / 358 MB, free: 13.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.063e-05/0.08027, allocations: 85.09 kB / 358.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.08038, allocations: 156.5 kB / 358.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.178e-05/0.08042, allocations: 41.69 kB / 358.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.685e-05/0.08051, allocations: 140.5 kB / 358.4 MB, free: 13.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.682e-05/0.08056, allocations: 63.31 kB / 358.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.823e-05/0.08062, allocations: 53.69 kB / 358.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.257e-05/0.08072, allocations: 330.8 kB / 358.9 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.08085, allocations: 63.97 kB / 358.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.08101, allocations: 136.5 kB / 359.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002451/0.08127, allocations: 197 kB / 359.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.08128, allocations: 7.938 kB / 359.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003685/0.08165, allocations: 249.2 kB / 359.5 MB, free: 12.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.08167, allocations: 4 kB / 359.5 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.08168, allocations: 4.281 kB / 359.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.0817, allocations: 8 kB / 359.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.08184, allocations: 35.92 kB / 359.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.08186, allocations: 7.984 kB / 359.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.973e-05/0.08196, allocations: 27.69 kB / 359.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.97e-05/0.082, allocations: 16 kB / 359.6 MB, free: 12.18 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.0001229/0.08213, allocations: 157.6 kB / 359.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.42e-05/0.08216, allocations: 11.91 kB / 359.8 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003174/0.08248, allocations: 194.4 kB / 360 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.0825, allocations: 4 kB / 360 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.08251, allocations: 3.938 kB / 360 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.08252, allocations: 3.984 kB / 360 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006707/0.08319, allocations: 0.5947 MB / 360.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.08321, allocations: 0 / 360.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.664e-05/0.08329, allocations: 27.92 kB / 360.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.0833, allocations: 3.938 kB / 360.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.08332, allocations: 7.938 kB / 360.6 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.08333, allocations: 0 / 360.6 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.08334, allocations: 4 kB / 360.6 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002928/0.08364, allocations: 288.4 kB / 360.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.261e-05/0.08369, allocations: 100.8 kB / 361 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.508e-05/0.08372, allocations: 12 kB / 361 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.697e-05/0.08382, allocations: 11.98 kB / 361 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.172e-05/0.08389, allocations: 19.97 kB / 361 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.08391, allocations: 8 kB / 361.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.991e-05/0.08397, allocations: 95.27 kB / 361.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08398, allocations: 0 / 361.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003087/0.08429, allocations: 51.84 kB / 361.2 MB, free: 10.48 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.0001172/0.08441, allocations: 123 kB / 361.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002988/0.08472, allocations: 183.8 kB / 361.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.08473, allocations: 0 / 361.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.08486, allocations: 79.91 kB / 361.6 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000283/0.08515, allocations: 27.92 kB / 361.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005527/0.08572, allocations: 446.1 kB / 362 MB, free: 9.602 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.08597, allocations: 0.7326 MB / 362.8 MB, free: 8.844 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.953e-05/0.08603, allocations: 27.36 kB / 362.8 MB, free: 8.816 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.08604, allocations: 0 / 362.8 MB, free: 8.816 MB / 302.1 MB Notification: Performance of Templates: time 0.003822/0.08987, allocations: 2.405 MB / 365.2 MB, free: 6.414 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 -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