Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002104/0.002104, allocations: 96.3 kB / 21.73 MB, free: 2.707 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002097/0.002097, allocations: 161.9 kB / 25.02 MB, free: 8.945 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.474/1.474, allocations: 158.6 MB / 186.8 MB, free: 2.902 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.665e-06/2.665e-06, allocations: 0 / 250.3 MB, free: 7.883 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.417e-05/4.684e-05, allocations: 6.109 kB / 250.3 MB, free: 7.879 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00565/0.005697, allocations: 1.673 MB / 252 MB, free: 6.191 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.006835, allocations: 259.1 kB / 252.3 MB, free: 5.938 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.006965, allocations: 7.938 kB / 252.3 MB, free: 5.93 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001956/0.00716, allocations: 23.73 kB / 252.3 MB, free: 5.906 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001221/0.007282, allocations: 23.73 kB / 252.3 MB, free: 5.883 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007304/0.008013, allocations: 123.8 kB / 252.4 MB, free: 5.762 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006399/0.008653, allocations: 271.5 kB / 252.7 MB, free: 5.496 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004493/0.009102, allocations: 162 kB / 252.9 MB, free: 5.34 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002916/0.009394, allocations: 131.8 kB / 253 MB, free: 5.211 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000218/0.009612, allocations: 71.77 kB / 253.1 MB, free: 5.141 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.172e-05/0.009683, allocations: 24 kB / 253.1 MB, free: 5.117 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001259/0.009809, allocations: 31.94 kB / 253.1 MB, free: 5.086 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001234/0.009933, allocations: 67.8 kB / 253.2 MB, free: 5.02 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001563/0.01009, allocations: 63.81 kB / 253.2 MB, free: 4.957 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006027/0.01069, allocations: 259.1 kB / 253.5 MB, free: 4.703 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.0107, allocations: 0 / 253.5 MB, free: 4.703 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.0107, allocations: 0 / 253.5 MB, free: 4.703 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.0107, allocations: 0 / 253.5 MB, free: 4.703 MB / 234.7 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.001058/0.01176, allocations: 420.6 kB / 253.9 MB, free: 4.254 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.894e-05/0.01182, allocations: 11.98 kB / 253.9 MB, free: 4.242 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001639/0.01199, allocations: 44.8 kB / 254 MB, free: 4.199 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005765/0.01256, allocations: 173.5 kB / 254.1 MB, free: 4.004 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.596e-05/0.01263, allocations: 28.86 kB / 254.2 MB, free: 3.977 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.878e-05/0.01271, allocations: 32.38 kB / 254.2 MB, free: 3.945 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008486/0.01356, allocations: 269.8 kB / 254.5 MB, free: 3.66 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.01357, allocations: 192 / 254.5 MB, free: 3.66 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.597e-05/0.01362, allocations: 12.38 kB / 254.5 MB, free: 3.648 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.01363, allocations: 4.375 kB / 254.5 MB, free: 3.645 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000627/0.01426, allocations: 169.8 kB / 254.6 MB, free: 3.48 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002017/0.01628, allocations: 0.8438 MB / 255.5 MB, free: 2.586 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004667/0.01674, allocations: 134.7 kB / 255.6 MB, free: 2.445 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001865/0.01693, allocations: 68.92 kB / 255.7 MB, free: 2.375 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.01695, allocations: 4 kB / 255.7 MB, free: 2.371 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003505/0.0173, allocations: 119.1 kB / 255.8 MB, free: 2.242 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 2.355e-06/0.01731, allocations: 0 / 255.8 MB, free: 2.242 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008097/0.01812, allocations: 222 kB / 256 MB, free: 2.02 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.241e-05/0.01821, allocations: 63.39 kB / 256.1 MB, free: 1.945 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002595/0.01847, allocations: 153.7 kB / 256.2 MB, free: 1.781 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.51e-05/0.01853, allocations: 37.64 kB / 256.3 MB, free: 1.738 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001841/0.01872, allocations: 140.8 kB / 256.4 MB, free: 1.598 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.01883, allocations: 67.45 kB / 256.5 MB, free: 1.531 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001939/0.01902, allocations: 82.02 kB / 256.5 MB, free: 1.441 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002809/0.0193, allocations: 330.8 kB / 256.9 MB, free: 1.109 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002305/0.01953, allocations: 60.62 kB / 256.9 MB, free: 1.051 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003517/0.01988, allocations: 137.8 kB / 257.1 MB, free: 0.8867 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005304/0.02041, allocations: 188.4 kB / 257.2 MB, free: 0.6719 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.02042, allocations: 0 / 257.2 MB, free: 0.6719 MB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008333/0.02125, allocations: 265.3 kB / 257.5 MB, free: 416 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.708e-05/0.02129, allocations: 8 kB / 257.5 MB, free: 408 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.0213, allocations: 0 / 257.5 MB, free: 408 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.68e-05/0.02134, allocations: 4.281 kB / 257.5 MB, free: 404 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002725/0.02161, allocations: 43.91 kB / 257.6 MB, free: 360 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.395e-05/0.02163, allocations: 7.938 kB / 257.6 MB, free: 352 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002305/0.02186, allocations: 31.78 kB / 257.6 MB, free: 320 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.807e-05/0.02192, allocations: 12 kB / 257.6 MB, free: 308 kB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0002913/0.02221, allocations: 156.4 kB / 257.8 MB, free: 144 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.359e-05/0.02229, allocations: 23.84 kB / 257.8 MB, free: 120 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006828/0.02297, allocations: 194.4 kB / 258 MB, free: 15.93 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.02298, allocations: 4 kB / 258 MB, free: 15.92 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.02298, allocations: 0 / 258 MB, free: 15.92 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.02299, allocations: 4 kB / 258 MB, free: 15.92 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001386/0.02438, allocations: 0.5009 MB / 258.5 MB, free: 15.38 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.02438, allocations: 3.938 kB / 258.5 MB, free: 15.37 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/0.02452, allocations: 19.98 kB / 258.5 MB, free: 15.35 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.728e-06/0.02453, allocations: 4 kB / 258.5 MB, free: 15.35 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.02455, allocations: 4 kB / 258.5 MB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.02455, allocations: 0 / 258.5 MB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.02456, allocations: 0 / 258.5 MB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008297/0.02539, allocations: 283.3 kB / 258.8 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.729e-05/0.02542, allocations: 15.84 kB / 258.8 MB, free: 15.04 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.722e-05/0.02547, allocations: 12 kB / 258.8 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.02564, allocations: 7.984 kB / 258.8 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.02576, allocations: 19.97 kB / 258.8 MB, free: 15 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.439e-05/0.02578, allocations: 8 kB / 258.9 MB, free: 14.99 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000121/0.0259, allocations: 110.7 kB / 259 MB, free: 14.88 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.0259, allocations: 0 / 259 MB, free: 14.88 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005959/0.0265, allocations: 51.88 kB / 259 MB, free: 14.83 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.000273/0.02677, allocations: 107.2 kB / 259.1 MB, free: 14.71 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006238/0.02739, allocations: 168.5 kB / 259.3 MB, free: 14.55 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.0274, allocations: 0 / 259.3 MB, free: 14.55 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002597/0.02766, allocations: 75.84 kB / 259.4 MB, free: 14.48 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005243/0.02818, allocations: 31.92 kB / 259.4 MB, free: 14.45 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001158/0.02934, allocations: 349.5 kB / 259.7 MB, free: 14.07 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.02959, allocations: 129.7 kB / 259.9 MB, free: 13.93 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.00014/0.02973, allocations: 25.94 kB / 259.9 MB, free: 13.91 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.02983, allocations: 20.5 kB / 259.9 MB, free: 13.89 MB / 250.7 MB Notification: Performance of SimCode: time 1.392e-06/0.02983, allocations: 7.938 kB / 259.9 MB, free: 13.88 MB / 250.7 MB Notification: Performance of Templates: time 0.01017/0.04, allocations: 1.916 MB / 261.8 MB, free: 11.98 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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.546106557012536]