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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 81.11 kB / 20.68 MB, free: 1.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001653/0.001653, allocations: 145.7 kB / 23.94 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 173.3 MB / 200.4 MB, free: 12.86 MB / 190.1 MB " [Timeout remaining time 178] 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=5012,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=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0.6094 kB / 318.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.201e-05/2.385e-05, allocations: 3.312 kB / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00237/0.002394, allocations: 1.634 MB / 320.5 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006194/0.003013, allocations: 294.4 kB / 320.8 MB, free: 2.234 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.711e-05/0.0031, allocations: 8.188 kB / 320.8 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001205/0.003221, allocations: 26.16 kB / 320.8 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.525e-05/0.003266, allocations: 14.48 kB / 320.9 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003879/0.003654, allocations: 130.9 kB / 321 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002912/0.003945, allocations: 276.5 kB / 321.3 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002537/0.004199, allocations: 158 kB / 321.4 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001433/0.004342, allocations: 141.6 kB / 321.6 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001346/0.004477, allocations: 77.36 kB / 321.6 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.281e-05/0.004519, allocations: 24.25 kB / 321.7 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.759e-05/0.004597, allocations: 33.98 kB / 321.7 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.854e-05/0.004656, allocations: 59.94 kB / 321.7 MB, free: 1.789 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.798e-05/0.004734, allocations: 71.16 kB / 321.8 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002955/0.005029, allocations: 266.3 kB / 322.1 MB, free: 1.633 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.706e-06/0.005032, allocations: 0 / 322.1 MB, free: 1.633 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.005033, allocations: 0 / 322.1 MB, free: 1.633 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.005044, allocations: 1 kB / 322.1 MB, free: 1.633 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.000574/0.005618, allocations: 431.3 kB / 322.5 MB, free: 1.27 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.005653, allocations: 8.969 kB / 322.5 MB, free: 1.27 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.574e-05/0.005718, allocations: 25.95 kB / 322.5 MB, free: 1.258 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002357/0.005954, allocations: 171.6 kB / 322.7 MB, free: 1.098 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.005981, allocations: 26.42 kB / 322.7 MB, free: 1.086 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.18e-05/0.006023, allocations: 27.05 kB / 322.8 MB, free: 1.078 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004093/0.006432, allocations: 271.8 kB / 323 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.006445, allocations: 4.125 kB / 323 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.287e-05/0.006468, allocations: 8.656 kB / 323 MB, free: 0.918 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-06/0.006476, allocations: 10.34 kB / 323 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002871/0.006763, allocations: 168.4 kB / 323.2 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008672/0.007631, allocations: 0.8477 MB / 324.1 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002493/0.00788, allocations: 163.9 kB / 324.2 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.007983, allocations: 73.81 kB / 324.3 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.008003, allocations: 2.75 kB / 324.3 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002751/0.008278, allocations: 139.3 kB / 324.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.00828, allocations: 0 / 324.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004974/0.008777, allocations: 234.6 kB / 324.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.162e-05/0.008859, allocations: 85.88 kB / 324.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.008998, allocations: 152.1 kB / 324.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.04e-05/0.009038, allocations: 40.77 kB / 324.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.00916, allocations: 144.4 kB / 325.1 MB, free: 15.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.215e-05/0.009222, allocations: 61.58 kB / 325.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.009339, allocations: 83.62 kB / 325.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.009507, allocations: 331.6 kB / 325.5 MB, free: 15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.009633, allocations: 66.55 kB / 325.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001876/0.009821, allocations: 144.8 kB / 325.7 MB, free: 14.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002904/0.01011, allocations: 186.5 kB / 325.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.01011, allocations: 0 / 325.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004279/0.01054, allocations: 274.1 kB / 326.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.01056, allocations: 5.844 kB / 326.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.01057, allocations: 2.125 kB / 326.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.01058, allocations: 5.344 kB / 326.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/0.01073, allocations: 29.73 kB / 326.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.01074, allocations: 5.719 kB / 326.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.01085, allocations: 29.86 kB / 326.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.928e-05/0.01088, allocations: 11.58 kB / 326.3 MB, free: 14.57 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.0001583/0.01104, allocations: 161.9 kB / 326.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.004e-05/0.01107, allocations: 15.56 kB / 326.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003612/0.01143, allocations: 208.7 kB / 326.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.01144, allocations: 2.625 kB / 326.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.01144, allocations: 1.469 kB / 326.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.01145, allocations: 3.281 kB / 326.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007419/0.01219, allocations: 0.4972 MB / 327.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.01219, allocations: 1.031 kB / 327.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.996e-05/0.01227, allocations: 25.59 kB / 327.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.01227, allocations: 2.219 kB / 327.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.01229, allocations: 11.33 kB / 327.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.0123, allocations: 5.219 kB / 327.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.0123, allocations: 1.094 kB / 327.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003584/0.01266, allocations: 281.7 kB / 327.5 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.146e-05/0.01268, allocations: 18.77 kB / 327.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.907e-05/0.01271, allocations: 6.062 kB / 327.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.795e-05/0.01281, allocations: 10.23 kB / 327.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.908e-05/0.01289, allocations: 26.72 kB / 327.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.735e-05/0.01291, allocations: 6.141 kB / 327.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001272/0.01304, allocations: 106.1 kB / 327.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.01304, allocations: 1.125 kB / 327.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003425/0.01338, allocations: 56.2 kB / 327.7 MB, free: 13.61 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.0002043/0.01359, allocations: 111.1 kB / 327.8 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004155/0.014, allocations: 168.4 kB / 328 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.014, allocations: 0 / 328 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001576/0.01416, allocations: 86.73 kB / 328.1 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003069/0.01447, allocations: 32.45 kB / 328.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006964/0.01516, allocations: 353.2 kB / 328.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001499/0.01531, allocations: 127.9 kB / 328.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.429e-05/0.0154, allocations: 25.64 kB / 328.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.065e-05/0.01547, allocations: 22.47 kB / 328.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of SimCode: time 8.52e-07/0.01547, allocations: 1.125 kB / 328.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of Templates: time 0.00662/0.02209, allocations: 1.948 MB / 330.6 MB, free: 12.77 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.356563605368137]