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.00158/0.001581, allocations: 119.5 kB / 18.41 MB, free: 4.684 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.001569/0.001569, allocations: 192.3 kB / 21.35 MB, free: 1.754 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.435/1.435, allocations: 222.9 MB / 247 MB, free: 4.305 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.001532/0.001532, allocations: 47.92 kB / 358.6 MB, free: 8.422 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1082, allocations: 49.43 MB / 408.1 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003248/0.1115, allocations: 1.695 MB / 409.8 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007531/0.1123, allocations: 295.1 kB / 410.1 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.521e-05/0.1124, allocations: 4 kB / 410.1 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001386/0.1125, allocations: 31.67 kB / 410.1 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.27e-05/0.1126, allocations: 15.81 kB / 410.1 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004195/0.113, allocations: 119.8 kB / 410.2 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003539/0.1134, allocations: 271.4 kB / 410.5 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000336/0.1137, allocations: 177.6 kB / 410.7 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.1139, allocations: 91.69 kB / 410.8 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001584/0.114, allocations: 99.53 kB / 410.9 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.942e-05/0.1141, allocations: 24 kB / 410.9 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.149e-05/0.1142, allocations: 28 kB / 410.9 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.151e-05/0.1142, allocations: 63.83 kB / 411 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.1144, allocations: 103.5 kB / 411.1 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003604/0.1147, allocations: 254.9 kB / 411.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1148, allocations: 4 kB / 411.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1148, allocations: 0 / 411.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.1148, allocations: 0 / 411.3 MB, free: 3.688 MB / 334.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.0007911/0.1156, allocations: 498.3 kB / 411.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.1156, allocations: 11.89 kB / 411.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.529e-05/0.1157, allocations: 32.78 kB / 411.8 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003631/0.1161, allocations: 228.1 kB / 412.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.085e-05/0.1161, allocations: 24.92 kB / 412.1 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.491e-05/0.1162, allocations: 28.38 kB / 412.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005182/0.1167, allocations: 274.5 kB / 412.4 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.1167, allocations: 192 / 412.4 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.499e-05/0.1168, allocations: 19.92 kB / 412.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.1168, allocations: 12 kB / 412.4 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003403/0.1171, allocations: 161.6 kB / 412.6 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.1185, allocations: 0.9674 MB / 413.5 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003238/0.1188, allocations: 173.3 kB / 413.7 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.119, allocations: 81.72 kB / 413.8 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.069e-05/0.119, allocations: 15.88 kB / 413.8 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002388/0.1193, allocations: 140.1 kB / 413.9 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.783e-06/0.1193, allocations: 0 / 413.9 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005159/0.1198, allocations: 221.4 kB / 414.2 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.464e-05/0.1199, allocations: 85.05 kB / 414.2 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001636/0.12, allocations: 153.7 kB / 414.4 MB, free: 364 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.1201, allocations: 37.83 kB / 414.4 MB, free: 320 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.1202, allocations: 144.8 kB / 414.6 MB, free: 172 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.405e-05/0.1203, allocations: 67.47 kB / 414.6 MB, free: 104 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.1204, allocations: 77.69 kB / 414.7 MB, free: 20 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001943/0.1206, allocations: 330.8 kB / 415 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001247/0.1207, allocations: 59.97 kB / 415.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.1209, allocations: 148.3 kB / 415.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002923/0.1212, allocations: 204.8 kB / 415.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1212, allocations: 0 / 415.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000407/0.1217, allocations: 253.5 kB / 415.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.1217, allocations: 8 kB / 415.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.1217, allocations: 0 / 415.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.1217, allocations: 4 kB / 415.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.1219, allocations: 39.86 kB / 415.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.1219, allocations: 4 kB / 415.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.122, allocations: 27.83 kB / 415.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.926e-05/0.122, allocations: 12 kB / 415.8 MB, free: 14.88 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.0001718/0.1222, allocations: 169.7 kB / 416 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.749e-05/0.1223, allocations: 15.91 kB / 416 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003834/0.1226, allocations: 198.9 kB / 416.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.1227, allocations: 4 kB / 416.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1227, allocations: 0 / 416.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.1227, allocations: 0 / 416.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008986/0.1236, allocations: 0.587 MB / 416.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1236, allocations: 0 / 416.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.604e-05/0.1237, allocations: 15.98 kB / 416.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.1237, allocations: 4 kB / 416.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.1237, allocations: 11.94 kB / 416.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.962e-06/0.1237, allocations: 3.984 kB / 416.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.1237, allocations: 7.922 kB / 416.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003551/0.1241, allocations: 288 kB / 417.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.207e-05/0.1242, allocations: 89 kB / 417.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.306e-05/0.1242, allocations: 11.94 kB / 417.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.139e-05/0.1243, allocations: 8 kB / 417.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.729e-05/0.1244, allocations: 23.91 kB / 417.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.108e-05/0.1244, allocations: 19.92 kB / 417.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.543e-05/0.1245, allocations: 95.14 kB / 417.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1245, allocations: 0 / 417.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003174/0.1248, allocations: 55.84 kB / 417.4 MB, free: 13.17 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.0001776/0.125, allocations: 115.1 kB / 417.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003735/0.1254, allocations: 192 kB / 417.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.1254, allocations: 0 / 417.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001631/0.1256, allocations: 84.45 kB / 417.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003164/0.1259, allocations: 23.98 kB / 417.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006741/0.1266, allocations: 382.9 kB / 418.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004111/0.127, allocations: 0.7324 MB / 418.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.301e-05/0.1271, allocations: 19.44 kB / 418.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1271, allocations: 0 / 418.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of Templates: time 0.005031/0.1321, allocations: 2.451 MB / 421.4 MB, free: 9.117 MB / 350.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: 7.0605499220546335]