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.001123/0.001123, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 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.00154/0.00154, allocations: 143.1 kB / 24.97 MB, free: 8.781 MB / 18.57 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.037/1.037, allocations: 173.3 MB / 201.5 MB, free: 9.34 MB / 186.7 MB " [Timeout remaining time 179] 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 1.703e-06/1.703e-06, allocations: 0 / 268 MB, free: 6.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.275e-05/2.446e-05, allocations: 6.25 kB / 268 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002674/0.002699, allocations: 1.722 MB / 269.8 MB, free: 5.027 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006668/0.003366, allocations: 306.9 kB / 270.1 MB, free: 4.727 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.003475, allocations: 3.938 kB / 270.1 MB, free: 4.723 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001301/0.003606, allocations: 27.73 kB / 270.1 MB, free: 4.695 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.088e-05/0.003666, allocations: 19.8 kB / 270.1 MB, free: 4.676 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004393/0.004106, allocations: 127.7 kB / 270.2 MB, free: 4.551 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003303/0.004436, allocations: 275.4 kB / 270.5 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002669/0.004703, allocations: 158.1 kB / 270.7 MB, free: 4.121 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.00484, allocations: 143.7 kB / 270.8 MB, free: 3.98 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/0.00496, allocations: 67.78 kB / 270.9 MB, free: 3.914 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.516e-05/0.004996, allocations: 24 kB / 270.9 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.496e-05/0.005071, allocations: 39.97 kB / 270.9 MB, free: 3.852 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.654e-05/0.005127, allocations: 51.83 kB / 271 MB, free: 3.801 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.567e-05/0.005203, allocations: 67.81 kB / 271 MB, free: 3.734 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002722/0.005475, allocations: 191.2 kB / 271.2 MB, free: 3.547 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.005479, allocations: 4 kB / 271.2 MB, free: 3.543 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.00548, allocations: 4 kB / 271.2 MB, free: 3.539 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.005486, allocations: 0 / 271.2 MB, free: 3.539 MB / 250.7 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.0005854/0.006071, allocations: 0.5112 MB / 271.8 MB, free: 2.992 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.006107, allocations: 12.03 kB / 271.8 MB, free: 2.98 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.213e-05/0.006199, allocations: 44.8 kB / 271.8 MB, free: 2.938 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002269/0.006426, allocations: 176.3 kB / 272 MB, free: 2.738 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.373e-05/0.006459, allocations: 20.88 kB / 272 MB, free: 2.719 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.869e-05/0.006498, allocations: 32.36 kB / 272 MB, free: 2.688 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003585/0.006857, allocations: 244.8 kB / 272.3 MB, free: 2.418 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.006871, allocations: 12.12 kB / 272.3 MB, free: 2.406 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.282e-05/0.006894, allocations: 8.375 kB / 272.3 MB, free: 2.398 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.006907, allocations: 8.375 kB / 272.3 MB, free: 2.391 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001939/0.007101, allocations: 102.8 kB / 272.4 MB, free: 2.293 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001338/0.008439, allocations: 1.072 MB / 273.5 MB, free: 1.16 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002462/0.008685, allocations: 146.4 kB / 273.6 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.079e-05/0.008776, allocations: 70.77 kB / 273.7 MB, free: 0.918 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.023e-05/0.008796, allocations: 7.984 kB / 273.7 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001753/0.008971, allocations: 140.2 kB / 273.8 MB, free: 0.75 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.332e-06/0.008972, allocations: 0 / 273.8 MB, free: 0.75 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003788/0.009351, allocations: 200.4 kB / 274 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.301e-05/0.009404, allocations: 89.05 kB / 274.1 MB, free: 456 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.009537, allocations: 217.4 kB / 274.3 MB, free: 224 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.009572, allocations: 41.64 kB / 274.4 MB, free: 176 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.009679, allocations: 187.7 kB / 274.6 MB, free: 15.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.79e-05/0.009727, allocations: 63.52 kB / 274.6 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.009829, allocations: 83.34 kB / 274.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.009969, allocations: 0.5001 MB / 275.2 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.574e-05/0.01005, allocations: 47.88 kB / 275.2 MB, free: 15.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001409/0.0102, allocations: 144.6 kB / 275.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002127/0.01041, allocations: 188.7 kB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.01041, allocations: 8 kB / 275.6 MB, free: 14.85 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003266/0.01074, allocations: 233 kB / 275.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.01076, allocations: 8 kB / 275.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.01076, allocations: 4 kB / 275.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.01078, allocations: 4 kB / 275.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.01091, allocations: 31.92 kB / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.01092, allocations: 12.2 kB / 275.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.934e-05/0.01101, allocations: 31.83 kB / 275.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.709e-05/0.01103, allocations: 16 kB / 275.9 MB, free: 14.51 MB / 266.7 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.0001202/0.01115, allocations: 180.5 kB / 276.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.572e-05/0.01119, allocations: 31.83 kB / 276.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002713/0.01146, allocations: 162.5 kB / 276.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.01146, allocations: 4 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.01147, allocations: 3.938 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.01147, allocations: 4 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005773/0.01205, allocations: 0.5399 MB / 276.8 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.01205, allocations: 0 / 276.8 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.404e-05/0.01211, allocations: 16 kB / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.01211, allocations: 0 / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.01213, allocations: 7.984 kB / 276.8 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.01213, allocations: 0 / 276.8 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.01213, allocations: 0 / 276.8 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002816/0.01241, allocations: 339.7 kB / 277.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.748e-05/0.01243, allocations: 19.84 kB / 277.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.469e-05/0.01245, allocations: 4 kB / 277.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.336e-05/0.01253, allocations: 11.98 kB / 277.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.874e-05/0.0126, allocations: 23.95 kB / 277.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.01261, allocations: 11.94 kB / 277.2 MB, free: 13.08 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.42e-05/0.01267, allocations: 139.1 kB / 277.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01267, allocations: 0 / 277.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003265/0.01299, allocations: 55.88 kB / 277.4 MB, free: 12.89 MB / 266.7 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.0001517/0.01314, allocations: 114.9 kB / 277.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003082/0.01345, allocations: 152.1 kB / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.01345, allocations: 4.188 kB / 277.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.01357, allocations: 87.45 kB / 277.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003008/0.01387, allocations: 27.98 kB / 277.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005571/0.01443, allocations: 342.8 kB / 278.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.275e-05/0.01449, allocations: 88.25 kB / 278.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.943e-05/0.01457, allocations: 22.02 kB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.435e-05/0.01463, allocations: 32.48 kB / 278.3 MB, free: 11.97 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01463, allocations: 0 / 278.3 MB, free: 11.97 MB / 266.7 MB Notification: Performance of Templates: time 0.005095/0.01972, allocations: 1.937 MB / 280.2 MB, free: 10.06 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9263307340443134]