Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.0018/0.0018, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 14.72 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.001571/0.001571, allocations: 169.3 kB / 24.5 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.46/1.46, allocations: 177.2 MB / 204.9 MB, free: 9.062 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 50.83 kB / 325.5 MB, free: 304 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1071, allocations: 53.34 MB / 378.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003108/0.1102, allocations: 1.689 MB / 380.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006865/0.1109, allocations: 291.2 kB / 380.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.659e-05/0.111, allocations: 7.938 kB / 380.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.1111, allocations: 27.67 kB / 380.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.478e-05/0.1111, allocations: 15.8 kB / 380.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003697/0.1115, allocations: 123.8 kB / 381 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003705/0.1119, allocations: 275.4 kB / 381.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002786/0.1122, allocations: 154 kB / 381.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.1123, allocations: 99.64 kB / 381.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.1124, allocations: 83.59 kB / 381.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.936e-05/0.1124, allocations: 24 kB / 381.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.254e-05/0.1125, allocations: 24 kB / 381.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.355e-05/0.1126, allocations: 63.81 kB / 381.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.1127, allocations: 79.59 kB / 381.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003089/0.113, allocations: 255 kB / 382.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.113, allocations: 3.938 kB / 382.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.113, allocations: 0 / 382.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.113, allocations: 0 / 382.1 MB, free: 12.54 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.0006322/0.1136, allocations: 421.2 kB / 382.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.001e-05/0.1137, allocations: 8.031 kB / 382.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002496/0.1139, allocations: 36.77 kB / 382.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002946/0.1142, allocations: 178.2 kB / 382.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.892e-05/0.1142, allocations: 24.88 kB / 382.7 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.084e-05/0.1143, allocations: 24.38 kB / 382.7 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004573/0.1147, allocations: 273.8 kB / 383 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.1148, allocations: 192 / 383 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.525e-05/0.1148, allocations: 11.94 kB / 383 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.1148, allocations: 8 kB / 383 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003041/0.1151, allocations: 161.9 kB / 383.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.1162, allocations: 0.8438 MB / 384 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002868/0.1165, allocations: 152.8 kB / 384.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.1166, allocations: 73.62 kB / 384.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.059e-05/0.1166, allocations: 4 kB / 384.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002151/0.1168, allocations: 137 kB / 384.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.343e-06/0.1168, allocations: 0 / 384.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.000437/0.1173, allocations: 232.2 kB / 384.6 MB, free: 9.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/0.1173, allocations: 85.05 kB / 384.7 MB, free: 9.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.1175, allocations: 153.7 kB / 384.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.278e-05/0.1175, allocations: 37.7 kB / 384.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.1176, allocations: 140.7 kB / 385 MB, free: 9.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.892e-05/0.1176, allocations: 63.58 kB / 385.1 MB, free: 9.309 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.1178, allocations: 85.42 kB / 385.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1179, allocations: 330.8 kB / 385.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.118, allocations: 59.97 kB / 385.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001868/0.1182, allocations: 140.5 kB / 385.7 MB, free: 8.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002694/0.1185, allocations: 193 kB / 385.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.1185, allocations: 4 kB / 385.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003921/0.1189, allocations: 261.2 kB / 386.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.1189, allocations: 8 kB / 386.1 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.1189, allocations: 4 kB / 386.1 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.1189, allocations: 4 kB / 386.1 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.119, allocations: 35.86 kB / 386.2 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.1191, allocations: 4 kB / 386.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.1192, allocations: 31.77 kB / 386.2 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.1192, allocations: 16.28 kB / 386.2 MB, free: 8.074 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.0001621/0.1193, allocations: 157.7 kB / 386.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.903e-05/0.1194, allocations: 15.95 kB / 386.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.527e-05/0.1194, allocations: 16.92 kB / 386.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.1194, allocations: 4 kB / 386.4 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.1194, allocations: 0 / 386.4 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.1194, allocations: 0 / 386.4 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006753/0.1201, allocations: 0.4892 MB / 386.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.1201, allocations: 0 / 386.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.695e-05/0.1202, allocations: 19.94 kB / 386.9 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1202, allocations: 4 kB / 386.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.1202, allocations: 0 / 386.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.1202, allocations: 7.984 kB / 386.9 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1202, allocations: 0 / 386.9 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003224/0.1205, allocations: 278.9 kB / 387.2 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.199e-05/0.1206, allocations: 15.84 kB / 387.2 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.806e-05/0.1206, allocations: 11.98 kB / 387.2 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.593e-05/0.1207, allocations: 8 kB / 387.3 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.161e-05/0.1207, allocations: 27.84 kB / 387.3 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.1208, allocations: 7.984 kB / 387.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.029e-05/0.1208, allocations: 103.3 kB / 387.4 MB, free: 6.852 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1208, allocations: 0 / 387.4 MB, free: 6.852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002955/0.1211, allocations: 43.89 kB / 387.4 MB, free: 6.809 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: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$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 (24): * Single equations (assignments): 19 * 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.0001028/0.1212, allocations: 107.2 kB / 387.5 MB, free: 6.695 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003226/0.1216, allocations: 167.6 kB / 387.7 MB, free: 6.531 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1216, allocations: 0 / 387.7 MB, free: 6.531 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.1217, allocations: 76.45 kB / 387.8 MB, free: 6.457 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002899/0.122, allocations: 35.97 kB / 387.8 MB, free: 6.422 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005741/0.1225, allocations: 338.4 kB / 388.1 MB, free: 6.066 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001205/0.1227, allocations: 125.4 kB / 388.3 MB, free: 5.922 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.29e-05/0.1227, allocations: 25.94 kB / 388.3 MB, free: 5.895 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.877e-05/0.1228, allocations: 20.5 kB / 388.3 MB, free: 5.875 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1228, allocations: 0 / 388.3 MB, free: 5.875 MB / 350.1 MB Notification: Performance of Templates: time 0.005301/0.1281, allocations: 1.729 MB / 390 MB, free: 4.176 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.300905621028505]