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.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.001169/0.001169, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001711/0.00288, allocations: 445.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001017/0.001017, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001397/0.002414, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 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 0.8942/0.8942, allocations: 158.6 MB / 171.1 MB, free: 2.582 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1345/1.029, allocations: 49.49 MB / 220.6 MB, free: 1.445 MB / 218.7 MB " [Timeout remaining time 179] 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_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: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 221.8 MB, free: 200 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.071e-05/2.213e-05, allocations: 2.312 kB / 221.8 MB, free: 196 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002944/0.002966, allocations: 1.735 MB / 223.5 MB, free: 14.44 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004711/0.007677, allocations: 271 kB / 223.8 MB, free: 14.17 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.007779, allocations: 4 kB / 223.8 MB, free: 14.17 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 9.68e-05/0.007876, allocations: 27.67 kB / 223.8 MB, free: 14.14 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.266e-05/0.007928, allocations: 15.81 kB / 223.9 MB, free: 14.12 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000337/0.008265, allocations: 135.7 kB / 224 MB, free: 13.99 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000302/0.008567, allocations: 271.5 kB / 224.3 MB, free: 13.73 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000248/0.008815, allocations: 166.2 kB / 224.4 MB, free: 13.56 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001505/0.008966, allocations: 135.8 kB / 224.5 MB, free: 13.43 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001297/0.009096, allocations: 75.75 kB / 224.6 MB, free: 13.36 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.177e-05/0.009137, allocations: 24 kB / 224.6 MB, free: 13.33 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.985e-05/0.009227, allocations: 28 kB / 224.7 MB, free: 13.3 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.835e-05/0.009285, allocations: 47.86 kB / 224.7 MB, free: 13.26 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.666e-05/0.009352, allocations: 55.88 kB / 224.8 MB, free: 13.2 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002454/0.009597, allocations: 167.3 kB / 224.9 MB, free: 13.04 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.574e-05/0.009613, allocations: 0 / 224.9 MB, free: 13.04 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.009614, allocations: 0 / 224.9 MB, free: 13.04 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.009631, allocations: 0 / 224.9 MB, free: 13.04 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.003633/0.01326, allocations: 442.9 kB / 225.4 MB, free: 12.58 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.0133, allocations: 12.03 kB / 225.4 MB, free: 12.57 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.683e-05/0.01337, allocations: 36.91 kB / 225.4 MB, free: 12.53 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002163/0.01358, allocations: 149.5 kB / 225.6 MB, free: 12.36 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.252e-05/0.01361, allocations: 32.81 kB / 225.6 MB, free: 12.33 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.065e-05/0.01365, allocations: 24.38 kB / 225.6 MB, free: 12.3 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002755/0.01392, allocations: 218.5 kB / 225.8 MB, free: 12.07 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.01393, allocations: 192 / 225.8 MB, free: 12.07 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/0.01395, allocations: 12.38 kB / 225.8 MB, free: 12.05 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.01396, allocations: 8.375 kB / 225.9 MB, free: 12.05 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001224/0.01408, allocations: 75.27 kB / 225.9 MB, free: 11.98 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007721/0.01485, allocations: 0.7232 MB / 226.7 MB, free: 11.22 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001675/0.01502, allocations: 106.4 kB / 226.8 MB, free: 11.11 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.354e-05/0.01508, allocations: 48.81 kB / 226.8 MB, free: 11.05 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.54e-05/0.01509, allocations: 4 kB / 226.8 MB, free: 11.05 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001287/0.01522, allocations: 95.12 kB / 226.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.433e-06/0.01522, allocations: 0 / 226.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002083/0.01543, allocations: 126.2 kB / 227 MB, free: 10.82 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.01547, allocations: 55.41 kB / 227.1 MB, free: 10.75 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.01557, allocations: 168.4 kB / 227.2 MB, free: 10.57 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.653e-05/0.0156, allocations: 41.64 kB / 227.3 MB, free: 10.53 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.573e-05/0.01568, allocations: 144.7 kB / 227.4 MB, free: 10.38 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.489e-05/0.01572, allocations: 55.56 kB / 227.5 MB, free: 10.33 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.892e-05/0.01582, allocations: 89.94 kB / 227.6 MB, free: 10.23 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.003106/0.01893, allocations: 326.8 kB / 227.9 MB, free: 9.902 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.36e-05/0.01899, allocations: 28.64 kB / 227.9 MB, free: 9.875 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.265e-05/0.01908, allocations: 105.8 kB / 228 MB, free: 9.742 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001979/0.01928, allocations: 152.2 kB / 228.2 MB, free: 9.562 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.01928, allocations: 0 / 228.2 MB, free: 9.562 MB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002358/0.01952, allocations: 165.4 kB / 228.3 MB, free: 9.395 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.01954, allocations: 11.94 kB / 228.3 MB, free: 9.383 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.01954, allocations: 0 / 228.3 MB, free: 9.383 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.01956, allocations: 8.266 kB / 228.3 MB, free: 9.375 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/0.01973, allocations: 51.86 kB / 228.4 MB, free: 9.324 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.01973, allocations: 4 kB / 228.4 MB, free: 9.32 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.01983, allocations: 31.77 kB / 228.4 MB, free: 9.289 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.426e-05/0.01986, allocations: 8 kB / 228.4 MB, free: 9.281 MB / 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,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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.0001078/0.01997, allocations: 140.4 kB / 228.6 MB, free: 9.133 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.854e-05/0.02, allocations: 19.92 kB / 228.6 MB, free: 9.113 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002022/0.0202, allocations: 118.8 kB / 228.7 MB, free: 8.988 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.0202, allocations: 4 kB / 228.7 MB, free: 8.984 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.0202, allocations: 0 / 228.7 MB, free: 8.984 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.02021, allocations: 7.984 kB / 228.7 MB, free: 8.977 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005172/0.02073, allocations: 381.3 kB / 229.1 MB, free: 8.574 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.02073, allocations: 0 / 229.1 MB, free: 8.574 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.871e-05/0.02081, allocations: 16 kB / 229.1 MB, free: 8.559 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.839e-05/0.02082, allocations: 19.83 kB / 229.1 MB, free: 8.539 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.02083, allocations: 0 / 229.1 MB, free: 8.539 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.02084, allocations: 8 kB / 229.1 MB, free: 8.531 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.02084, allocations: 4 kB / 229.1 MB, free: 8.527 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.02084, allocations: 0 / 229.1 MB, free: 8.527 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001805/0.02103, allocations: 219.3 kB / 229.4 MB, free: 8.297 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.249e-05/0.02105, allocations: 8 kB / 229.4 MB, free: 8.289 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.417e-05/0.02112, allocations: 4 kB / 229.4 MB, free: 8.285 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.766e-05/0.02118, allocations: 27.94 kB / 229.4 MB, free: 8.258 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.02119, allocations: 3.938 kB / 229.4 MB, free: 8.254 MB / 234.7 MB Notification: Performance of sorting global known variables: time 3.18e-05/0.02122, allocations: 29.53 kB / 229.4 MB, free: 8.223 MB / 234.7 MB Notification: Performance of sort global known variables: time 1e-07/0.02122, allocations: 0 / 229.4 MB, free: 8.223 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0002812/0.0215, allocations: 55.84 kB / 229.5 MB, free: 8.168 MB / 234.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,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.0001421/0.02165, allocations: 84.36 kB / 229.6 MB, free: 8.078 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0002073/0.02185, allocations: 133.4 kB / 229.7 MB, free: 7.945 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.092e-05/0.02187, allocations: 4 kB / 229.7 MB, free: 7.941 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 8.635e-05/0.02195, allocations: 65.34 kB / 229.8 MB, free: 7.875 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002243/0.02218, allocations: 43.91 kB / 229.8 MB, free: 7.832 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006671/0.02284, allocations: 333 kB / 230.1 MB, free: 7.484 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.169e-05/0.0229, allocations: 76.33 kB / 230.2 MB, free: 7.391 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 8.15e-05/0.02299, allocations: 26.39 kB / 230.2 MB, free: 7.363 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.02309, allocations: 79.36 kB / 230.3 MB, free: 7.285 MB / 234.7 MB Notification: Performance of SimCode: time 7.21e-07/0.02309, allocations: 0 / 230.3 MB, free: 7.285 MB / 234.7 MB Notification: Performance of Templates: time 0.003831/0.02693, allocations: 2.17 MB / 232.5 MB, free: 5.133 MB / 234.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.582727776840329]