Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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.001691/0.001691, allocations: 119.6 kB / 18.41 MB, free: 4.688 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.001949/0.001949, allocations: 192.3 kB / 21.35 MB, free: 1.75 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.399/1.399, allocations: 222.9 MB / 247 MB, free: 4.316 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 51.92 kB / 358.6 MB, free: 8.473 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0993/0.1009, allocations: 49.43 MB / 408.1 MB, free: 6.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002645/0.1035, allocations: 1.484 MB / 409.6 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006649/0.1042, allocations: 279.2 kB / 409.8 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.479e-05/0.1043, allocations: 7.938 kB / 409.8 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001382/0.1045, allocations: 27.73 kB / 409.9 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.54e-05/0.1045, allocations: 15.8 kB / 409.9 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003962/0.1049, allocations: 111.8 kB / 410 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003303/0.1053, allocations: 263.5 kB / 410.2 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000318/0.1056, allocations: 158.4 kB / 410.4 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.1057, allocations: 79.78 kB / 410.5 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.1059, allocations: 107.5 kB / 410.6 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.83e-05/0.1059, allocations: 20 kB / 410.6 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.098e-05/0.106, allocations: 32 kB / 410.6 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.982e-05/0.1061, allocations: 55.81 kB / 410.7 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.1062, allocations: 95.53 kB / 410.8 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003234/0.1065, allocations: 247 kB / 411 MB, free: 4.031 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1066, allocations: 0 / 411 MB, free: 4.031 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1066, allocations: 0 / 411 MB, free: 4.031 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.7e-06/0.1066, allocations: 0 / 411 MB, free: 4.031 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007034/0.1073, allocations: 482.3 kB / 411.5 MB, free: 3.508 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.1073, allocations: 12.03 kB / 411.5 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.916e-05/0.1074, allocations: 20.8 kB / 411.5 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003391/0.1077, allocations: 244 kB / 411.8 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.544e-05/0.1078, allocations: 20.94 kB / 411.8 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.972e-05/0.1078, allocations: 24.38 kB / 411.8 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004312/0.1083, allocations: 244 kB / 412 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.1083, allocations: 4.125 kB / 412.1 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.894e-05/0.1083, allocations: 19.92 kB / 412.1 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.1083, allocations: 4 kB / 412.1 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000308/0.1086, allocations: 161.6 kB / 412.2 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001045/0.1097, allocations: 0.6975 MB / 412.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003046/0.11, allocations: 170.8 kB / 413.1 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001289/0.1101, allocations: 76.83 kB / 413.2 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.1102, allocations: 4 kB / 413.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002007/0.1104, allocations: 126.3 kB / 413.3 MB, free: 1.578 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.864e-06/0.1104, allocations: 0 / 413.3 MB, free: 1.578 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004523/0.1108, allocations: 221.4 kB / 413.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.079e-05/0.1109, allocations: 55.41 kB / 413.6 MB, free: 1.289 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.111, allocations: 146 kB / 413.7 MB, free: 1.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.336e-05/0.1111, allocations: 37.7 kB / 413.7 MB, free: 1.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.1112, allocations: 132.8 kB / 413.9 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.481e-05/0.1112, allocations: 63.52 kB / 413.9 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.1114, allocations: 81.95 kB / 414 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.1115, allocations: 326.8 kB / 414.3 MB, free: 492 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.1116, allocations: 60.62 kB / 414.4 MB, free: 432 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.1118, allocations: 132.1 kB / 414.5 MB, free: 276 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002596/0.1121, allocations: 175.2 kB / 414.7 MB, free: 76 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.1121, allocations: 3.938 kB / 414.7 MB, free: 72 kB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004284/0.1125, allocations: 245.3 kB / 414.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.1126, allocations: 7.984 kB / 414.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.1126, allocations: 4 kB / 415 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.1126, allocations: 4 kB / 415 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.1127, allocations: 27.92 kB / 415 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.1127, allocations: 8.203 kB / 415 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.943e-05/0.1128, allocations: 27.83 kB / 415 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.296e-05/0.1129, allocations: 19.98 kB / 415 MB, free: 15.73 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001418/0.113, allocations: 145.8 kB / 415.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.867e-05/0.1131, allocations: 23.83 kB / 415.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003531/0.1134, allocations: 202.9 kB / 415.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.1134, allocations: 4 kB / 415.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1134, allocations: 0 / 415.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.1135, allocations: 4 kB / 415.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007641/0.1142, allocations: 0.5606 MB / 416 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1142, allocations: 0 / 416 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.56e-05/0.1143, allocations: 15.98 kB / 416 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.1143, allocations: 4 kB / 416 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/0.1144, allocations: 8 kB / 416 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.1144, allocations: 3.938 kB / 416 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.1144, allocations: 7.875 kB / 416 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003322/0.1147, allocations: 287.3 kB / 416.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.18e-05/0.1148, allocations: 89 kB / 416.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.128e-05/0.1148, allocations: 4 kB / 416.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.525e-05/0.1149, allocations: 7.984 kB / 416.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.57e-05/0.115, allocations: 27.91 kB / 416.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.115, allocations: 8 kB / 416.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.296e-05/0.1151, allocations: 95.27 kB / 416.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1151, allocations: 0 / 416.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000287/0.1154, allocations: 51.89 kB / 416.6 MB, free: 14.09 MB / 350.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 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0001579/0.1155, allocations: 107.2 kB / 416.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003365/0.1159, allocations: 184 kB / 416.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1159, allocations: 0 / 416.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001439/0.116, allocations: 92.48 kB / 416.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.1163, allocations: 20.38 kB / 417 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006227/0.1169, allocations: 361.5 kB / 417.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003805/0.1173, allocations: 0.7322 MB / 418 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.308e-05/0.1174, allocations: 23.42 kB / 418.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1174, allocations: 0 / 418.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of Templates: time 0.004505/0.1219, allocations: 2.382 MB / 420.5 MB, free: 10.13 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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.110776418005116]