Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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.001504/0.001504, allocations: 107.6 kB / 21.18 MB, free: 0.5781 MB / 14.72 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.001821/0.001821, allocations: 211.8 kB / 24.48 MB, free: 3.867 MB / 14.72 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.576/1.576, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 54.73 kB / 347.7 MB, free: 9.414 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3581/0.3599, allocations: 49.16 MB / 396.8 MB, free: 9.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003406/0.3633, allocations: 1.449 MB / 398.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.3643, allocations: 246.4 kB / 398.5 MB, free: 8.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001404/0.3645, allocations: 7.094 kB / 398.5 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001665/0.3646, allocations: 20.77 kB / 398.5 MB, free: 8.211 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.606e-05/0.3647, allocations: 19.12 kB / 398.6 MB, free: 8.195 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005551/0.3652, allocations: 120.4 kB / 398.7 MB, free: 8.133 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004488/0.3657, allocations: 261.2 kB / 398.9 MB, free: 8.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003891/0.3661, allocations: 147.9 kB / 399.1 MB, free: 7.953 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001622/0.3662, allocations: 86.23 kB / 399.2 MB, free: 7.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001885/0.3664, allocations: 83.75 kB / 399.2 MB, free: 7.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.125e-05/0.3665, allocations: 22.22 kB / 399.3 MB, free: 7.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/0.3666, allocations: 32.42 kB / 399.3 MB, free: 7.863 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.071e-05/0.3667, allocations: 59.62 kB / 399.4 MB, free: 7.824 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001244/0.3668, allocations: 72.11 kB / 399.4 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004705/0.3673, allocations: 240 kB / 399.7 MB, free: 7.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.3673, allocations: 3.938 kB / 399.7 MB, free: 7.676 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.3673, allocations: 0 / 399.7 MB, free: 7.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.884e-05/0.3673, allocations: 0.6562 kB / 399.7 MB, free: 7.676 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007232/0.368, allocations: 427.8 kB / 400.1 MB, free: 7.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.3681, allocations: 12.7 kB / 400.1 MB, free: 7.309 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.1e-05/0.3682, allocations: 25.27 kB / 400.1 MB, free: 7.297 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003309/0.3685, allocations: 166.1 kB / 400.3 MB, free: 7.141 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.502e-05/0.3685, allocations: 20.88 kB / 400.3 MB, free: 7.133 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.293e-05/0.3686, allocations: 25.75 kB / 400.3 MB, free: 7.125 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004526/0.3691, allocations: 242.9 kB / 400.6 MB, free: 7.004 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.3691, allocations: 192 / 400.6 MB, free: 7.004 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.646e-05/0.3691, allocations: 10.95 kB / 400.6 MB, free: 6.996 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.3691, allocations: 9.25 kB / 400.6 MB, free: 6.992 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003491/0.3695, allocations: 160.4 kB / 400.7 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.3706, allocations: 0.5833 MB / 401.3 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003823/0.3709, allocations: 148.8 kB / 401.5 MB, free: 6.418 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.3711, allocations: 74.2 kB / 401.5 MB, free: 6.383 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.493e-05/0.3711, allocations: 2.594 kB / 401.5 MB, free: 6.383 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002732/0.3714, allocations: 125.1 kB / 401.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.935e-06/0.3714, allocations: 1.125 kB / 401.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007218/0.3721, allocations: 227 kB / 401.9 MB, free: 6.203 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/0.3722, allocations: 63.44 kB / 401.9 MB, free: 6.133 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001418/0.3723, allocations: 146.2 kB / 402.1 MB, free: 6.008 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.426e-05/0.3724, allocations: 40.45 kB / 402.1 MB, free: 5.969 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.916e-05/0.3724, allocations: 134.4 kB / 402.3 MB, free: 5.848 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.847e-05/0.3725, allocations: 60.25 kB / 402.3 MB, free: 5.801 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.3726, allocations: 74.12 kB / 402.4 MB, free: 5.758 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.3727, allocations: 326.7 kB / 402.7 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.3728, allocations: 63.62 kB / 402.8 MB, free: 5.418 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001915/0.373, allocations: 121 kB / 402.9 MB, free: 5.332 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003225/0.3734, allocations: 176.7 kB / 403.1 MB, free: 5.207 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.3734, allocations: 1.062 kB / 403.1 MB, free: 5.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004795/0.3738, allocations: 249 kB / 403.3 MB, free: 5.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.3739, allocations: 9.188 kB / 403.3 MB, free: 5.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.3739, allocations: 2.5 kB / 403.3 MB, free: 5.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.025e-05/0.3739, allocations: 3.688 kB / 403.3 MB, free: 5.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.3741, allocations: 32.64 kB / 403.4 MB, free: 5.078 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.3741, allocations: 3.375 kB / 403.4 MB, free: 5.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.3742, allocations: 29.91 kB / 403.4 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.275e-05/0.3742, allocations: 13.94 kB / 403.4 MB, free: 5.055 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001357/0.3744, allocations: 154.3 kB / 403.6 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.851e-05/0.3744, allocations: 17.28 kB / 403.6 MB, free: 4.902 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003809/0.3748, allocations: 201.9 kB / 403.8 MB, free: 4.805 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.3748, allocations: 2.25 kB / 403.8 MB, free: 4.805 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.3748, allocations: 3.969 kB / 403.8 MB, free: 4.805 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.431e-06/0.3748, allocations: 0 / 403.8 MB, free: 4.805 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006386/0.3754, allocations: 499.4 kB / 404.3 MB, free: 4.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3754, allocations: 0 / 404.3 MB, free: 4.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.872e-05/0.3755, allocations: 19.77 kB / 404.3 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.3755, allocations: 0.75 kB / 404.3 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.3755, allocations: 6.984 kB / 404.3 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.3755, allocations: 5.156 kB / 404.3 MB, free: 4.445 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3755, allocations: 4 kB / 404.3 MB, free: 4.441 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003418/0.3759, allocations: 278.8 kB / 404.6 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.379e-05/0.3759, allocations: 18.11 kB / 404.6 MB, free: 4.246 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.3759, allocations: 5.922 kB / 404.6 MB, free: 4.242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.751e-05/0.376, allocations: 14.97 kB / 404.6 MB, free: 4.234 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.654e-05/0.3761, allocations: 22.09 kB / 404.6 MB, free: 4.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.3761, allocations: 7.344 kB / 404.6 MB, free: 4.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.51e-05/0.3762, allocations: 96.72 kB / 404.7 MB, free: 4.148 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3762, allocations: 0 / 404.7 MB, free: 4.148 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003287/0.3765, allocations: 58.5 kB / 404.8 MB, free: 4.125 MB / 318.1 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 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0001571/0.3767, allocations: 105.8 kB / 404.9 MB, free: 4.031 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003917/0.3771, allocations: 170.2 kB / 405.1 MB, free: 3.98 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3771, allocations: 0 / 405.1 MB, free: 3.98 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001442/0.3772, allocations: 77.19 kB / 405.1 MB, free: 3.957 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.3775, allocations: 24.55 kB / 405.2 MB, free: 3.945 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006493/0.3782, allocations: 326.4 kB / 405.5 MB, free: 3.723 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001417/0.3783, allocations: 123.1 kB / 405.6 MB, free: 3.645 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.065e-05/0.3784, allocations: 21.28 kB / 405.6 MB, free: 3.645 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.372e-05/0.3784, allocations: 21.88 kB / 405.6 MB, free: 3.637 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3784, allocations: 5.375 kB / 405.6 MB, free: 3.633 MB / 318.1 MB Notification: Performance of Templates: time 0.006948/0.3854, allocations: 2.022 MB / 407.7 MB, free: 3.309 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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.998239455744624]