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.001369/0.001369, allocations: 96.58 kB / 20.96 MB, free: 480 kB / 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.001579/0.001579, allocations: 154.9 kB / 24.25 MB, free: 3.547 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.412/1.412, allocations: 173.3 MB / 200.8 MB, free: 12.75 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.523e-06/1.523e-06, allocations: 3.938 kB / 267.3 MB, free: 10.25 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.74e-05/2.892e-05, allocations: 5.547 kB / 267.3 MB, free: 10.25 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003153/0.003182, allocations: 1.635 MB / 268.9 MB, free: 8.594 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008716/0.004053, allocations: 295.1 kB / 269.2 MB, free: 8.305 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001351/0.004188, allocations: 7.938 kB / 269.2 MB, free: 8.297 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001586/0.004347, allocations: 27.73 kB / 269.2 MB, free: 8.27 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 6.729e-05/0.004414, allocations: 15.8 kB / 269.3 MB, free: 8.254 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005078/0.004922, allocations: 131.7 kB / 269.4 MB, free: 8.125 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004238/0.005346, allocations: 283.4 kB / 269.7 MB, free: 7.848 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004007/0.005747, allocations: 162.8 kB / 269.8 MB, free: 7.684 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002302/0.005977, allocations: 143.7 kB / 270 MB, free: 7.543 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001628/0.00614, allocations: 71.77 kB / 270 MB, free: 7.473 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 5.535e-05/0.006195, allocations: 24 kB / 270 MB, free: 7.449 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001183/0.006313, allocations: 35.98 kB / 270.1 MB, free: 7.414 MB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 8.308e-05/0.006396, allocations: 59.81 kB / 270.1 MB, free: 7.355 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.006503, allocations: 67.81 kB / 270.2 MB, free: 7.289 MB / 254.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004392/0.006942, allocations: 267 kB / 270.5 MB, free: 7.027 MB / 254.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.006947, allocations: 4 kB / 270.5 MB, free: 7.023 MB / 254.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.006948, allocations: 0 / 270.5 MB, free: 7.023 MB / 254.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.006956, allocations: 0 / 270.5 MB, free: 7.023 MB / 254.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.0008133/0.007769, allocations: 433.1 kB / 270.9 MB, free: 6.566 MB / 254.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.007806, allocations: 8.031 kB / 270.9 MB, free: 6.559 MB / 254.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.007919, allocations: 44.8 kB / 270.9 MB, free: 6.516 MB / 254.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003717/0.008291, allocations: 181.4 kB / 271.1 MB, free: 6.312 MB / 254.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.318e-05/0.008334, allocations: 24.88 kB / 271.1 MB, free: 6.289 MB / 254.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.234e-05/0.008387, allocations: 24.38 kB / 271.2 MB, free: 6.266 MB / 254.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005459/0.008933, allocations: 277.9 kB / 271.4 MB, free: 5.973 MB / 254.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.008945, allocations: 4.125 kB / 271.4 MB, free: 5.969 MB / 254.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.061e-05/0.008976, allocations: 8.375 kB / 271.5 MB, free: 5.961 MB / 254.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.467e-06/0.008985, allocations: 4.375 kB / 271.5 MB, free: 5.957 MB / 254.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003437/0.009329, allocations: 169.8 kB / 271.6 MB, free: 5.793 MB / 254.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001347/0.01068, allocations: 0.8438 MB / 272.5 MB, free: 4.902 MB / 254.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003146/0.01099, allocations: 157.3 kB / 272.6 MB, free: 4.73 MB / 254.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001366/0.01113, allocations: 77.72 kB / 272.7 MB, free: 4.648 MB / 254.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.01115, allocations: 4 kB / 272.7 MB, free: 4.645 MB / 254.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000245/0.0114, allocations: 147.8 kB / 272.8 MB, free: 4.484 MB / 254.1 MB Notification: Performance of pre-optimization done (n=24): time 1.704e-06/0.0114, allocations: 0 / 272.8 MB, free: 4.484 MB / 254.1 MB Notification: Performance of matching and sorting (n=24): time 0.00051/0.01191, allocations: 233.5 kB / 273.1 MB, free: 4.25 MB / 254.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.657e-05/0.01197, allocations: 89.05 kB / 273.2 MB, free: 4.145 MB / 254.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.01214, allocations: 161.6 kB / 273.3 MB, free: 3.977 MB / 254.1 MB Notification: Performance of collectPreVariables (initialization): time 3.983e-05/0.01218, allocations: 37.7 kB / 273.4 MB, free: 3.934 MB / 254.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.0123, allocations: 144.7 kB / 273.5 MB, free: 3.785 MB / 254.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.208e-05/0.01237, allocations: 59.58 kB / 273.6 MB, free: 3.727 MB / 254.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.01249, allocations: 81.64 kB / 273.6 MB, free: 3.641 MB / 254.1 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.01268, allocations: 330.8 kB / 274 MB, free: 3.309 MB / 254.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.01282, allocations: 67.75 kB / 274 MB, free: 3.242 MB / 254.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.01302, allocations: 140.3 kB / 274.2 MB, free: 3.074 MB / 254.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003058/0.01333, allocations: 188.4 kB / 274.3 MB, free: 2.859 MB / 254.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.01333, allocations: 0 / 274.3 MB, free: 2.859 MB / 254.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000461/0.01379, allocations: 281.8 kB / 274.6 MB, free: 2.578 MB / 254.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.01381, allocations: 8 kB / 274.6 MB, free: 2.57 MB / 254.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.01382, allocations: 0 / 274.6 MB, free: 2.57 MB / 254.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.01384, allocations: 4 kB / 274.6 MB, free: 2.566 MB / 254.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.014, allocations: 31.92 kB / 274.7 MB, free: 2.535 MB / 254.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.01401, allocations: 7.938 kB / 274.7 MB, free: 2.527 MB / 254.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/0.01413, allocations: 35.77 kB / 274.7 MB, free: 2.492 MB / 254.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.305e-05/0.01416, allocations: 12 kB / 274.7 MB, free: 2.48 MB / 254.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.0001873/0.01435, allocations: 158 kB / 274.9 MB, free: 2.316 MB / 254.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.197e-05/0.01439, allocations: 23.89 kB / 274.9 MB, free: 2.293 MB / 254.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003652/0.01476, allocations: 199.5 kB / 275.1 MB, free: 2.094 MB / 254.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.01476, allocations: 4 kB / 275.1 MB, free: 2.09 MB / 254.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.01477, allocations: 0 / 275.1 MB, free: 2.09 MB / 254.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.01477, allocations: 3.984 kB / 275.1 MB, free: 2.086 MB / 254.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000738/0.01551, allocations: 0.5016 MB / 275.6 MB, free: 1.543 MB / 254.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.01552, allocations: 4 kB / 275.6 MB, free: 1.539 MB / 254.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.704e-05/0.01559, allocations: 12 kB / 275.6 MB, free: 1.527 MB / 254.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.0156, allocations: 0 / 275.6 MB, free: 1.527 MB / 254.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.325e-05/0.01562, allocations: 15.98 kB / 275.6 MB, free: 1.512 MB / 254.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.01562, allocations: 3.938 kB / 275.6 MB, free: 1.508 MB / 254.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.01562, allocations: 0 / 275.6 MB, free: 1.508 MB / 254.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003947/0.01602, allocations: 300.5 kB / 275.9 MB, free: 1.195 MB / 254.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.63e-05/0.01604, allocations: 15.84 kB / 275.9 MB, free: 1.18 MB / 254.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.777e-05/0.01607, allocations: 8 kB / 276 MB, free: 1.172 MB / 254.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.215e-05/0.01616, allocations: 11.98 kB / 276 MB, free: 1.16 MB / 254.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.732e-05/0.01624, allocations: 19.97 kB / 276 MB, free: 1.141 MB / 254.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.333e-05/0.01626, allocations: 11.98 kB / 276 MB, free: 1.129 MB / 254.1 MB Notification: Performance of sorting global known variables: time 6.589e-05/0.01633, allocations: 102.3 kB / 276.1 MB, free: 1.031 MB / 254.1 MB Notification: Performance of sort global known variables: time 7e-08/0.01633, allocations: 4 kB / 276.1 MB, free: 1.027 MB / 254.1 MB Notification: Performance of remove unused functions: time 0.0003126/0.01664, allocations: 55.83 kB / 276.2 MB, free: 0.9727 MB / 254.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.0001693/0.01681, allocations: 114.9 kB / 276.3 MB, free: 0.8516 MB / 254.1 MB Notification: Performance of simCode: created initialization part: time 0.0003827/0.0172, allocations: 171.8 kB / 276.4 MB, free: 0.6836 MB / 254.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.0172, allocations: 0 / 276.4 MB, free: 0.6836 MB / 254.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.01735, allocations: 83.77 kB / 276.5 MB, free: 0.6016 MB / 254.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.01765, allocations: 20.62 kB / 276.5 MB, free: 0.582 MB / 254.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007482/0.01839, allocations: 370 kB / 276.9 MB, free: 200 kB / 254.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001558/0.01855, allocations: 129.2 kB / 277 MB, free: 48 kB / 254.1 MB Notification: Performance of simCode: alias equations: time 8.059e-05/0.01863, allocations: 25.95 kB / 277 MB, free: 20 kB / 254.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.286e-05/0.01871, allocations: 28.48 kB / 277.1 MB, free: 15.99 MB / 270.1 MB Notification: Performance of SimCode: time 6.21e-07/0.01871, allocations: 0 / 277.1 MB, free: 15.99 MB / 270.1 MB Notification: Performance of Templates: time 0.006154/0.02487, allocations: 1.956 MB / 279 MB, free: 14.07 MB / 270.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.02362360432744]