Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001822/0.001822, allocations: 79.73 kB / 21.25 MB, free: 396 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002238/0.002238, allocations: 164.6 kB / 24.5 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 177.1 MB / 204.7 MB, free: 9 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 57.11 kB / 325.5 MB, free: 236 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1125, allocations: 53.4 MB / 378.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002923/0.1154, allocations: 1.658 MB / 380.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006938/0.1161, allocations: 287.2 kB / 380.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.043e-05/0.1162, allocations: 11.94 kB / 380.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001216/0.1163, allocations: 23.73 kB / 380.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.918e-05/0.1164, allocations: 23.73 kB / 380.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003754/0.1168, allocations: 119.8 kB / 381 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003339/0.1171, allocations: 279.4 kB / 381.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002724/0.1174, allocations: 155.6 kB / 381.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001205/0.1175, allocations: 99.69 kB / 381.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001326/0.1176, allocations: 91.53 kB / 381.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.966e-05/0.1177, allocations: 24 kB / 381.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.41e-05/0.1177, allocations: 27.94 kB / 381.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.745e-05/0.1178, allocations: 59.83 kB / 381.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.497e-05/0.1179, allocations: 83.58 kB / 381.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003015/0.1182, allocations: 259 kB / 382.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.1182, allocations: 0 / 382.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1182, allocations: 0 / 382.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.1182, allocations: 0 / 382.1 MB, free: 12.35 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.0006311/0.1188, allocations: 425.1 kB / 382.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.1189, allocations: 19.98 kB / 382.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002352/0.1191, allocations: 32.78 kB / 382.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002797/0.1194, allocations: 174.1 kB / 382.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.676e-05/0.1194, allocations: 20.88 kB / 382.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.548e-05/0.1195, allocations: 28.38 kB / 382.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004534/0.1199, allocations: 269.8 kB / 383 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.1199, allocations: 4.125 kB / 383 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.552e-05/0.12, allocations: 15.94 kB / 383 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.12, allocations: 4 kB / 383 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003098/0.1203, allocations: 161.9 kB / 383.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001127/0.1214, allocations: 0.836 MB / 384 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002859/0.1217, allocations: 153.5 kB / 384.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.1218, allocations: 77.62 kB / 384.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.1218, allocations: 3.984 kB / 384.2 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002304/0.1221, allocations: 139.1 kB / 384.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.482e-06/0.1221, allocations: 3.938 kB / 384.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004273/0.1225, allocations: 222.1 kB / 384.6 MB, free: 9.625 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.1226, allocations: 89.16 kB / 384.7 MB, free: 9.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.1227, allocations: 165.2 kB / 384.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.192e-05/0.1227, allocations: 33.7 kB / 384.9 MB, free: 9.312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.1228, allocations: 144.8 kB / 385 MB, free: 9.164 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.944e-05/0.1229, allocations: 63.48 kB / 385.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.123, allocations: 77.69 kB / 385.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.1232, allocations: 326.8 kB / 385.5 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.1233, allocations: 67.75 kB / 385.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002014/0.1235, allocations: 136.5 kB / 385.7 MB, free: 8.461 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002699/0.1238, allocations: 192.4 kB / 385.9 MB, free: 8.242 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.1238, allocations: 4 kB / 385.9 MB, free: 8.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003915/0.1242, allocations: 257.4 kB / 386.1 MB, free: 7.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.1242, allocations: 4 kB / 386.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.1242, allocations: 7.938 kB / 386.1 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.1242, allocations: 4 kB / 386.1 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.1244, allocations: 31.92 kB / 386.2 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.1244, allocations: 4 kB / 386.2 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.1245, allocations: 27.83 kB / 386.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.514e-05/0.1245, allocations: 16 kB / 386.2 MB, free: 7.887 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.0001696/0.1247, allocations: 161.7 kB / 386.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.998e-05/0.1247, allocations: 23.89 kB / 386.4 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.899e-05/0.1248, allocations: 16.94 kB / 386.4 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.1248, allocations: 0 / 386.4 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.276e-05/0.1248, allocations: 4 kB / 386.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1248, allocations: 0 / 386.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007179/0.1255, allocations: 0.5015 MB / 386.9 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.1255, allocations: 0 / 386.9 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.982e-05/0.1256, allocations: 12 kB / 386.9 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1256, allocations: 0 / 386.9 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.1256, allocations: 11.98 kB / 386.9 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.1256, allocations: 4 kB / 386.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1256, allocations: 0 / 386.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003169/0.1259, allocations: 276.1 kB / 387.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.339e-05/0.1259, allocations: 19.91 kB / 387.2 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.758e-05/0.126, allocations: 7.984 kB / 387.2 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.1261, allocations: 4 kB / 387.2 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.213e-05/0.1261, allocations: 27.89 kB / 387.3 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-05/0.1262, allocations: 11.98 kB / 387.3 MB, free: 6.746 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.82e-05/0.1262, allocations: 99.2 kB / 387.4 MB, free: 6.648 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1262, allocations: 0 / 387.4 MB, free: 6.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003126/0.1266, allocations: 55.84 kB / 387.4 MB, free: 6.594 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,step.active,transition1.enableFire,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.0001264/0.1267, allocations: 107.2 kB / 387.5 MB, free: 6.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003265/0.127, allocations: 171.7 kB / 387.7 MB, free: 6.312 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.127, allocations: 0 / 387.7 MB, free: 6.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.1271, allocations: 71.84 kB / 387.8 MB, free: 6.242 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.1274, allocations: 28.61 kB / 387.8 MB, free: 6.215 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006374/0.1281, allocations: 340.3 kB / 388.1 MB, free: 5.855 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00012/0.1282, allocations: 117.6 kB / 388.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.472e-05/0.1283, allocations: 25.94 kB / 388.3 MB, free: 5.691 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.577e-05/0.1283, allocations: 28.44 kB / 388.3 MB, free: 5.664 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1283, allocations: 0 / 388.3 MB, free: 5.664 MB / 350.1 MB Notification: Performance of Templates: time 0.005494/0.1338, allocations: 1.763 MB / 390.1 MB, free: 3.93 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.37720669794362]