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.001993/0.001993, allocations: 107.6 kB / 21.18 MB, free: 460 kB / 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.002405/0.002405, allocations: 218.7 kB / 24.48 MB, free: 3.805 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.571/1.571, allocations: 207.7 MB / 235.3 MB, free: 9.816 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_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: 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.001873/0.001873, allocations: 55.92 kB / 347.7 MB, free: 9.426 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.367/0.3689, allocations: 49.16 MB / 396.8 MB, free: 9.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00381/0.3727, allocations: 1.669 MB / 398.5 MB, free: 8.246 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007987/0.3735, allocations: 258.8 kB / 398.7 MB, free: 8.074 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.3736, allocations: 6.969 kB / 398.8 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.3738, allocations: 26.02 kB / 398.8 MB, free: 8.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.068e-05/0.3739, allocations: 18.66 kB / 398.8 MB, free: 8.035 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005239/0.3744, allocations: 122 kB / 398.9 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003762/0.3748, allocations: 271.6 kB / 399.2 MB, free: 7.855 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003563/0.3751, allocations: 153.4 kB / 399.3 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.3752, allocations: 93.39 kB / 399.4 MB, free: 7.738 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001562/0.3754, allocations: 83.75 kB / 399.5 MB, free: 7.695 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.928e-05/0.3754, allocations: 26.45 kB / 399.5 MB, free: 7.691 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.249e-05/0.3755, allocations: 37.67 kB / 399.6 MB, free: 7.684 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.725e-05/0.3756, allocations: 55.5 kB / 399.6 MB, free: 7.648 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000115/0.3757, allocations: 77.97 kB / 399.7 MB, free: 7.602 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004074/0.3761, allocations: 251 kB / 399.9 MB, free: 7.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3761, allocations: 0.6094 kB / 399.9 MB, free: 7.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3761, allocations: 4 kB / 399.9 MB, free: 7.488 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.437e-06/0.3762, allocations: 5.062 kB / 399.9 MB, free: 7.484 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.000674/0.3768, allocations: 414.8 kB / 400.4 MB, free: 7.133 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.3769, allocations: 13.33 kB / 400.4 MB, free: 7.129 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.302e-05/0.3769, allocations: 25.59 kB / 400.4 MB, free: 7.117 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003003/0.3772, allocations: 175.5 kB / 400.6 MB, free: 6.953 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.926e-05/0.3773, allocations: 22.08 kB / 400.6 MB, free: 6.941 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.271e-05/0.3773, allocations: 27.05 kB / 400.6 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005018/0.3778, allocations: 269.6 kB / 400.9 MB, free: 6.789 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.3779, allocations: 9.406 kB / 400.9 MB, free: 6.781 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.773e-05/0.3779, allocations: 19.02 kB / 400.9 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.3779, allocations: 5.875 kB / 400.9 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003475/0.3782, allocations: 164.8 kB / 401.1 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001119/0.3794, allocations: 0.8397 MB / 401.9 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003185/0.3797, allocations: 139.4 kB / 402 MB, free: 5.941 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.3798, allocations: 73.02 kB / 402.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.129e-05/0.3798, allocations: 2.594 kB / 402.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002082/0.38, allocations: 118.1 kB / 402.2 MB, free: 5.828 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.224e-06/0.38, allocations: 4 kB / 402.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004823/0.3805, allocations: 212 kB / 402.4 MB, free: 5.734 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.3806, allocations: 59.42 kB / 402.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.3807, allocations: 161.1 kB / 402.7 MB, free: 5.535 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.3807, allocations: 39.28 kB / 402.7 MB, free: 5.496 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.439e-05/0.3808, allocations: 140.8 kB / 402.8 MB, free: 5.371 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.135e-05/0.3808, allocations: 61.66 kB / 402.9 MB, free: 5.324 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.381, allocations: 78.03 kB / 403 MB, free: 5.277 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.781e-05/0.381, allocations: 333.2 kB / 403.3 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.3812, allocations: 57.67 kB / 403.4 MB, free: 4.938 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.3813, allocations: 142.4 kB / 403.5 MB, free: 4.828 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002378/0.3815, allocations: 183.9 kB / 403.7 MB, free: 4.691 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3816, allocations: 1.125 kB / 403.7 MB, free: 4.691 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000375/0.3819, allocations: 257.4 kB / 403.9 MB, free: 4.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.3819, allocations: 5.688 kB / 403.9 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.382, allocations: 2.219 kB / 403.9 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.382, allocations: 3.688 kB / 403.9 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.3821, allocations: 34.73 kB / 404 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.3821, allocations: 3.656 kB / 404 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.3822, allocations: 30.67 kB / 404 MB, free: 4.543 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.348e-05/0.3823, allocations: 18.91 kB / 404 MB, free: 4.535 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.000121/0.3824, allocations: 153.8 kB / 404.2 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.256e-05/0.3824, allocations: 17.84 kB / 404.2 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003526/0.3828, allocations: 189.8 kB / 404.4 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.3828, allocations: 2.031 kB / 404.4 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.493e-06/0.3828, allocations: 1.578 kB / 404.4 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.3828, allocations: 1.5 kB / 404.4 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006565/0.3834, allocations: 0.5043 MB / 404.9 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.3834, allocations: 5.156 kB / 404.9 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.403e-05/0.3835, allocations: 25.52 kB / 404.9 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3835, allocations: 1.375 kB / 404.9 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.3835, allocations: 2.234 kB / 404.9 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/0.3835, allocations: 13.34 kB / 404.9 MB, free: 3.898 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3835, allocations: 4.641 kB / 404.9 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003008/0.3838, allocations: 275.8 kB / 405.2 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.918e-05/0.3839, allocations: 16.78 kB / 405.2 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/0.3839, allocations: 8.047 kB / 405.2 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.283e-05/0.384, allocations: 8.109 kB / 405.2 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.28e-05/0.3841, allocations: 21.61 kB / 405.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.3841, allocations: 8.891 kB / 405.3 MB, free: 3.684 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.135e-05/0.3841, allocations: 105.3 kB / 405.4 MB, free: 3.598 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3841, allocations: 0 / 405.4 MB, free: 3.598 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003091/0.3844, allocations: 55.47 kB / 405.4 MB, free: 3.578 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,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.000138/0.3846, allocations: 105.7 kB / 405.5 MB, free: 3.484 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003438/0.3849, allocations: 166 kB / 405.7 MB, free: 3.438 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3849, allocations: 4.562 kB / 405.7 MB, free: 3.434 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.3851, allocations: 75.08 kB / 405.8 MB, free: 3.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002909/0.3854, allocations: 22.91 kB / 405.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006618/0.386, allocations: 336.1 kB / 406.1 MB, free: 3.172 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001391/0.3862, allocations: 125 kB / 406.2 MB, free: 3.09 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.513e-05/0.3862, allocations: 25.5 kB / 406.3 MB, free: 3.082 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.148e-05/0.3863, allocations: 22.59 kB / 406.3 MB, free: 3.074 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.3863, allocations: 0 / 406.3 MB, free: 3.074 MB / 318.1 MB Notification: Performance of Templates: time 0.006487/0.3928, allocations: 1.994 MB / 408.3 MB, free: 2.727 MB / 318.1 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.981160098686814]