Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001394/0.001394, allocations: 103.1 kB / 19.75 MB, free: 2.656 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.001432/0.001432, allocations: 188.5 kB / 22.92 MB, free: 5.484 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.642/1.642, allocations: 207.6 MB / 233.5 MB, free: 10.98 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.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=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001759/0.001759, allocations: 51.92 kB / 345.4 MB, free: 10.47 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3627/0.3645, allocations: 49.12 MB / 394.5 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00339/0.3679, allocations: 1.672 MB / 396.2 MB, free: 8.285 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006613/0.3685, allocations: 261.8 kB / 396.4 MB, free: 8.109 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.3686, allocations: 6.938 kB / 396.4 MB, free: 8.105 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001468/0.3688, allocations: 30.7 kB / 396.5 MB, free: 8.082 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.101e-05/0.3688, allocations: 14.5 kB / 396.5 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004301/0.3693, allocations: 123.2 kB / 396.6 MB, free: 8.004 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000349/0.3696, allocations: 266.2 kB / 396.9 MB, free: 7.891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003329/0.37, allocations: 155.1 kB / 397 MB, free: 7.816 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.3701, allocations: 94.22 kB / 397.1 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001652/0.3702, allocations: 105.8 kB / 397.2 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.171e-05/0.3703, allocations: 24.19 kB / 397.2 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.556e-05/0.3704, allocations: 27.5 kB / 397.3 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.347e-05/0.3705, allocations: 56.42 kB / 397.3 MB, free: 7.668 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.3706, allocations: 106.2 kB / 397.4 MB, free: 7.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004355/0.371, allocations: 257.4 kB / 397.7 MB, free: 7.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.026e-05/0.371, allocations: 1.797 kB / 397.7 MB, free: 7.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.371, allocations: 0 / 397.7 MB, free: 7.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.3711, allocations: 0 / 397.7 MB, free: 7.48 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007003/0.3718, allocations: 494.8 kB / 398.1 MB, free: 7.039 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.3718, allocations: 13.72 kB / 398.2 MB, free: 7.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.949e-05/0.3719, allocations: 28.67 kB / 398.2 MB, free: 7.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003042/0.3722, allocations: 237.1 kB / 398.4 MB, free: 6.785 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.838e-05/0.3722, allocations: 20.7 kB / 398.4 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.929e-05/0.3723, allocations: 26.84 kB / 398.5 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004746/0.3727, allocations: 276.8 kB / 398.7 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.3728, allocations: 5.25 kB / 398.7 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.757e-05/0.3728, allocations: 15.34 kB / 398.8 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.3728, allocations: 5.938 kB / 398.8 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003306/0.3731, allocations: 165.7 kB / 398.9 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001256/0.3744, allocations: 0.9642 MB / 399.9 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003271/0.3747, allocations: 140.3 kB / 400 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.3748, allocations: 66.84 kB / 400.1 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.989e-05/0.3749, allocations: 6.188 kB / 400.1 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002195/0.3751, allocations: 118.9 kB / 400.2 MB, free: 5.574 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.583e-06/0.3751, allocations: 0.7812 kB / 400.2 MB, free: 5.574 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.000519/0.3756, allocations: 211 kB / 400.4 MB, free: 5.484 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.626e-05/0.3757, allocations: 60.42 kB / 400.5 MB, free: 5.418 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001592/0.3758, allocations: 161.3 kB / 400.6 MB, free: 5.285 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.844e-05/0.3758, allocations: 35.84 kB / 400.7 MB, free: 5.25 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.3759, allocations: 152.1 kB / 400.8 MB, free: 5.109 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.593e-05/0.376, allocations: 58 kB / 400.9 MB, free: 5.066 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.3761, allocations: 74.7 kB / 400.9 MB, free: 5.023 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.3762, allocations: 330.4 kB / 401.3 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.3764, allocations: 63.38 kB / 401.3 MB, free: 4.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002127/0.3766, allocations: 143.7 kB / 401.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002865/0.3769, allocations: 185.1 kB / 401.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3769, allocations: 1.312 kB / 401.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004319/0.3773, allocations: 252.7 kB / 401.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.3774, allocations: 10.84 kB / 401.9 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.3774, allocations: 3.031 kB / 401.9 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.728e-05/0.3774, allocations: 4 kB / 401.9 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.3776, allocations: 31.52 kB / 402 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.64e-05/0.3776, allocations: 8.141 kB / 402 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.3777, allocations: 32.23 kB / 402 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.656e-05/0.3777, allocations: 15.55 kB / 402 MB, free: 4.27 MB / 318.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: 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.0001576/0.3779, allocations: 169 kB / 402.2 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.474e-05/0.3779, allocations: 18.86 kB / 402.2 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003873/0.3783, allocations: 193.9 kB / 402.4 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.3783, allocations: 6.719 kB / 402.4 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.3783, allocations: 1.25 kB / 402.4 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.3783, allocations: 1.547 kB / 402.4 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008932/0.3792, allocations: 0.5881 MB / 403 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.3792, allocations: 0 / 403 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.29e-05/0.3793, allocations: 17.53 kB / 403 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.3793, allocations: 5.062 kB / 403 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.034e-05/0.3793, allocations: 10.38 kB / 403 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3793, allocations: 1.156 kB / 403 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3793, allocations: 1.062 kB / 403 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003972/0.3797, allocations: 276.9 kB / 403.3 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.312e-05/0.3798, allocations: 92.98 kB / 403.4 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.843e-05/0.3798, allocations: 10.12 kB / 403.4 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.048e-05/0.3799, allocations: 3.25 kB / 403.4 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.56e-05/0.38, allocations: 26.95 kB / 403.4 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.514e-05/0.38, allocations: 12.59 kB / 403.4 MB, free: 3.227 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.196e-05/0.38, allocations: 97.97 kB / 403.5 MB, free: 3.148 MB / 318.1 MB Notification: Performance of sort global known variables: time 6e-08/0.38, allocations: 0 / 403.5 MB, free: 3.148 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003609/0.3804, allocations: 51.83 kB / 403.6 MB, free: 3.133 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 (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: 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.0001544/0.3806, allocations: 105.4 kB / 403.7 MB, free: 3.039 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003518/0.3809, allocations: 184 kB / 403.9 MB, free: 2.977 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3809, allocations: 0 / 403.9 MB, free: 2.977 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001294/0.381, allocations: 70.55 kB / 403.9 MB, free: 2.957 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.3813, allocations: 19.11 kB / 403.9 MB, free: 2.949 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006313/0.382, allocations: 353.1 kB / 404.3 MB, free: 2.719 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001974/0.3822, allocations: 0.7346 MB / 405 MB, free: 2.02 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.715e-05/0.3822, allocations: 24.78 kB / 405 MB, free: 2.012 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.83e-05/0.3823, allocations: 22.61 kB / 405.1 MB, free: 2.004 MB / 318.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3823, allocations: 4 kB / 405.1 MB, free: 2 MB / 318.1 MB Notification: Performance of Templates: time 0.006438/0.3887, allocations: 1.947 MB / 407 MB, free: 1.809 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.914768539369106]