Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001381/0.001381, allocations: 84.66 kB / 20.95 MB, free: 3.449 MB / 18.57 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.001444/0.001444, allocations: 153.1 kB / 24.26 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 173.3 MB / 200.8 MB, free: 9.289 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.881e-05/3.062e-05, allocations: 2.312 kB / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003289/0.00332, allocations: 1.652 MB / 268.9 MB, free: 5.07 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007531/0.004073, allocations: 295.1 kB / 269.2 MB, free: 4.781 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.106e-05/0.004164, allocations: 4 kB / 269.2 MB, free: 4.777 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001483/0.004312, allocations: 23.67 kB / 269.2 MB, free: 4.754 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.665e-05/0.004369, allocations: 23.8 kB / 269.3 MB, free: 4.73 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004763/0.004845, allocations: 131.7 kB / 269.4 MB, free: 4.602 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004109/0.005256, allocations: 279.4 kB / 269.7 MB, free: 4.328 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003159/0.005572, allocations: 167.7 kB / 269.8 MB, free: 4.156 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002059/0.005778, allocations: 143.7 kB / 270 MB, free: 4.016 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001653/0.005943, allocations: 75.75 kB / 270 MB, free: 3.941 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.124e-05/0.005995, allocations: 24 kB / 270.1 MB, free: 3.918 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.444e-05/0.006079, allocations: 32 kB / 270.1 MB, free: 3.887 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.022e-05/0.006159, allocations: 59.8 kB / 270.2 MB, free: 3.828 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.006265, allocations: 67.83 kB / 270.2 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000385/0.00665, allocations: 275 kB / 270.5 MB, free: 3.492 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.006653, allocations: 0 / 270.5 MB, free: 3.492 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.006654, allocations: 0 / 270.5 MB, free: 3.492 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.006662, allocations: 0 / 270.5 MB, free: 3.492 MB / 250.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.0008249/0.007487, allocations: 421.2 kB / 270.9 MB, free: 3.047 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.007522, allocations: 8.031 kB / 270.9 MB, free: 3.039 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.007632, allocations: 48.78 kB / 271 MB, free: 2.992 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003167/0.007948, allocations: 177.5 kB / 271.1 MB, free: 2.793 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.153e-05/0.00799, allocations: 24.81 kB / 271.2 MB, free: 2.77 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.299e-05/0.008033, allocations: 28.38 kB / 271.2 MB, free: 2.742 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005143/0.008547, allocations: 277.9 kB / 271.5 MB, free: 2.449 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.008558, allocations: 192 / 271.5 MB, free: 2.449 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.064e-05/0.008588, allocations: 8.375 kB / 271.5 MB, free: 2.441 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.0086, allocations: 8.375 kB / 271.5 MB, free: 2.434 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000351/0.008951, allocations: 173.7 kB / 271.6 MB, free: 2.266 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001255/0.01021, allocations: 0.84 MB / 272.5 MB, free: 1.379 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000319/0.01052, allocations: 173.2 kB / 272.7 MB, free: 1.191 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.01066, allocations: 64.7 kB / 272.7 MB, free: 1.125 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.364e-05/0.01069, allocations: 7.984 kB / 272.7 MB, free: 1.117 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002476/0.01094, allocations: 141 kB / 272.9 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 3.437e-06/0.01094, allocations: 3.984 kB / 272.9 MB, free: 0.957 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005099/0.01145, allocations: 236.6 kB / 273.1 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.991e-05/0.01153, allocations: 81.11 kB / 273.2 MB, free: 0.625 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00018/0.01171, allocations: 169 kB / 273.3 MB, free: 464 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.406e-05/0.01175, allocations: 37.7 kB / 273.4 MB, free: 420 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.01188, allocations: 152.8 kB / 273.5 MB, free: 260 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.415e-05/0.01195, allocations: 55.59 kB / 273.6 MB, free: 204 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.01207, allocations: 81.62 kB / 273.7 MB, free: 116 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002104/0.01228, allocations: 330.8 kB / 274 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.01243, allocations: 67.75 kB / 274.1 MB, free: 15.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/0.01264, allocations: 144.3 kB / 274.2 MB, free: 15.54 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003244/0.01296, allocations: 188.3 kB / 274.4 MB, free: 15.33 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.01297, allocations: 4 kB / 274.4 MB, free: 15.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004764/0.01344, allocations: 277.2 kB / 274.7 MB, free: 15.05 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.01346, allocations: 4.281 kB / 274.7 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.01347, allocations: 8 kB / 274.7 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.01349, allocations: 4 kB / 274.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.01365, allocations: 35.92 kB / 274.7 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.392e-05/0.01367, allocations: 7.984 kB / 274.7 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.01377, allocations: 31.72 kB / 274.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.005e-05/0.0138, allocations: 12 kB / 274.8 MB, free: 14.95 MB / 266.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: 32 ($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,transition2.t_start,$PRE.transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.0001839/0.01399, allocations: 153.8 kB / 274.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002302/0.01422, allocations: 23.89 kB / 274.9 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004044/0.01462, allocations: 194.5 kB / 275.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.01463, allocations: 8 kB / 275.1 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.01463, allocations: 3.984 kB / 275.1 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.01464, allocations: 4 kB / 275.1 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008124/0.01545, allocations: 0.5016 MB / 275.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.01545, allocations: 0 / 275.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.069e-05/0.01553, allocations: 23.92 kB / 275.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.623e-06/0.01554, allocations: 4 kB / 275.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.01555, allocations: 0 / 275.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.474e-06/0.01556, allocations: 4 kB / 275.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.01556, allocations: 0 / 275.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004101/0.01597, allocations: 308.5 kB / 276 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.455e-05/0.016, allocations: 15.84 kB / 276 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.369e-05/0.01603, allocations: 11.98 kB / 276 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.715e-05/0.01612, allocations: 0 / 276 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.011e-05/0.01621, allocations: 27.95 kB / 276 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.01622, allocations: 4 kB / 276 MB, free: 13.6 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.707e-05/0.01631, allocations: 103.2 kB / 276.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01631, allocations: 0 / 276.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003461/0.01666, allocations: 51.89 kB / 276.2 MB, free: 13.45 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002079/0.01687, allocations: 130.8 kB / 276.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003685/0.01723, allocations: 163.8 kB / 276.5 MB, free: 13.15 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01724, allocations: 4 kB / 276.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.01739, allocations: 75.84 kB / 276.5 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003216/0.01771, allocations: 27.92 kB / 276.6 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007745/0.01849, allocations: 354 kB / 276.9 MB, free: 12.67 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001698/0.01866, allocations: 133.8 kB / 277 MB, free: 12.52 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.878e-05/0.01875, allocations: 33.94 kB / 277.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.616e-05/0.01882, allocations: 24.5 kB / 277.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of SimCode: time 3.9e-07/0.01882, allocations: 0 / 277.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of Templates: time 0.00603/0.02485, allocations: 1.957 MB / 279.1 MB, free: 10.54 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.314055779948831]