Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001462/0.001462, allocations: 120.8 kB / 18.46 MB, free: 4.449 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.00156/0.00156, allocations: 190.9 kB / 21.4 MB, free: 1.52 MB / 14.72 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.419/1.419, allocations: 225.6 MB / 249.8 MB, free: 3.602 MB / 190.1 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 55.91 kB / 366.8 MB, free: 360 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09461/0.09606, allocations: 52.14 MB / 418.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00298/0.09904, allocations: 1.711 MB / 420.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000653/0.0997, allocations: 287.1 kB / 420.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.103e-05/0.09978, allocations: 8 kB / 420.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.0999, allocations: 27.67 kB / 421 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.793e-05/0.09996, allocations: 19.8 kB / 421 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003621/0.1003, allocations: 119.8 kB / 421.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003245/0.1006, allocations: 271.5 kB / 421.4 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002625/0.1009, allocations: 153.5 kB / 421.5 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.101, allocations: 87.7 kB / 421.6 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001456/0.1012, allocations: 107.5 kB / 421.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.703e-05/0.1012, allocations: 24 kB / 421.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.721e-05/0.1013, allocations: 24 kB / 421.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.853e-05/0.1013, allocations: 63.81 kB / 421.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.1015, allocations: 99.47 kB / 421.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003199/0.1018, allocations: 258.9 kB / 422.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1018, allocations: 0 / 422.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1018, allocations: 0 / 422.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.1018, allocations: 4 kB / 422.2 MB, free: 8.871 MB / 350.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.0006988/0.1025, allocations: 0.4906 MB / 422.7 MB, free: 8.324 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.1025, allocations: 15.89 kB / 422.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.474e-05/0.1026, allocations: 24.8 kB / 422.7 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002921/0.1029, allocations: 224.1 kB / 422.9 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.672e-05/0.1029, allocations: 24.94 kB / 422.9 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.139e-05/0.103, allocations: 28.38 kB / 423 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004647/0.1034, allocations: 278.5 kB / 423.2 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.1034, allocations: 192 / 423.2 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.577e-05/0.1035, allocations: 19.88 kB / 423.3 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.1035, allocations: 4 kB / 423.3 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002986/0.1038, allocations: 165.6 kB / 423.4 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001187/0.105, allocations: 0.9751 MB / 424.4 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.1052, allocations: 161.5 kB / 424.6 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001344/0.1054, allocations: 73.62 kB / 424.6 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.1054, allocations: 0 / 424.6 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002182/0.1056, allocations: 141 kB / 424.8 MB, free: 6.051 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.183e-06/0.1056, allocations: 0 / 424.8 MB, free: 6.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004362/0.1061, allocations: 222.4 kB / 425 MB, free: 5.828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.28e-05/0.1061, allocations: 81.11 kB / 425.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.1063, allocations: 157.5 kB / 425.2 MB, free: 5.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.638e-05/0.1063, allocations: 41.69 kB / 425.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.556e-05/0.1064, allocations: 140.8 kB / 425.4 MB, free: 5.383 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.388e-05/0.1065, allocations: 63.48 kB / 425.5 MB, free: 5.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.1066, allocations: 81.67 kB / 425.5 MB, free: 5.234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.1067, allocations: 334.9 kB / 425.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.1068, allocations: 59.97 kB / 425.9 MB, free: 4.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.107, allocations: 144.2 kB / 426.1 MB, free: 4.668 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002795/0.1073, allocations: 204.8 kB / 426.3 MB, free: 4.438 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.1073, allocations: 4 kB / 426.3 MB, free: 4.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000409/0.1077, allocations: 245.3 kB / 426.5 MB, free: 4.188 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.1077, allocations: 4 kB / 426.5 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.1077, allocations: 4 kB / 426.5 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.1077, allocations: 4 kB / 426.5 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.1079, allocations: 39.91 kB / 426.6 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.1079, allocations: 12.22 kB / 426.6 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.108, allocations: 23.84 kB / 426.6 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.898e-05/0.108, allocations: 12 kB / 426.6 MB, free: 4.09 MB / 350.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: 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.0001582/0.1082, allocations: 165.6 kB / 426.8 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.647e-05/0.1082, allocations: 11.91 kB / 426.8 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003454/0.1085, allocations: 199 kB / 427 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.1086, allocations: 7.938 kB / 427 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1086, allocations: 3.938 kB / 427 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1086, allocations: 4 kB / 427 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000769/0.1093, allocations: 0.5948 MB / 427.6 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1093, allocations: 0 / 427.6 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.825e-05/0.1094, allocations: 23.92 kB / 427.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.1094, allocations: 0 / 427.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.1094, allocations: 7.938 kB / 427.6 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.1094, allocations: 0 / 427.6 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1094, allocations: 0 / 427.6 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003396/0.1098, allocations: 295.9 kB / 427.9 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.479e-05/0.1098, allocations: 89 kB / 428 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.832e-05/0.1099, allocations: 15.92 kB / 428 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.437e-05/0.11, allocations: 8 kB / 428 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.253e-05/0.11, allocations: 15.97 kB / 428 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-05/0.11, allocations: 12 kB / 428 MB, free: 2.535 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.257e-05/0.1101, allocations: 95.27 kB / 428.1 MB, free: 2.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1101, allocations: 0 / 428.1 MB, free: 2.441 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002994/0.1104, allocations: 55.84 kB / 428.2 MB, free: 2.387 MB / 350.1 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,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: 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.0001479/0.1105, allocations: 115.1 kB / 428.3 MB, free: 2.266 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003277/0.1109, allocations: 172.7 kB / 428.5 MB, free: 2.098 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1109, allocations: 0.5625 kB / 428.5 MB, free: 2.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.111, allocations: 83.72 kB / 428.5 MB, free: 2.016 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.1113, allocations: 30.05 kB / 428.6 MB, free: 1.988 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006196/0.1119, allocations: 369.9 kB / 428.9 MB, free: 1.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003716/0.1123, allocations: 0.7402 MB / 429.7 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.272e-05/0.1123, allocations: 23.44 kB / 429.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1123, allocations: 0 / 429.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of Templates: time 0.004582/0.1169, allocations: 2.451 MB / 432.2 MB, free: 14.34 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 6.53176956390962]