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.001035/0.001035, allocations: 80.06 kB / 21.19 MB, free: 3.383 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.001056/0.001056, allocations: 141.1 kB / 24.54 MB, free: 32 kB / 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.023/1.023, allocations: 173.3 MB / 201.1 MB, free: 9.336 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 2.565e-06/2.565e-06, allocations: 3.938 kB / 268 MB, free: 6.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.372e-05/3.629e-05, allocations: 6.25 kB / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002625/0.002661, allocations: 1.73 MB / 269.7 MB, free: 4.723 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007296/0.003391, allocations: 299.1 kB / 270 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.677e-05/0.003488, allocations: 11.88 kB / 270 MB, free: 4.418 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001328/0.00362, allocations: 27.73 kB / 270 MB, free: 4.391 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.962e-05/0.00367, allocations: 11.81 kB / 270 MB, free: 4.379 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004811/0.004151, allocations: 135.7 kB / 270.2 MB, free: 4.246 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003264/0.004478, allocations: 279.4 kB / 270.4 MB, free: 3.973 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003165/0.004794, allocations: 150.1 kB / 270.6 MB, free: 3.82 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001483/0.004942, allocations: 139.7 kB / 270.7 MB, free: 3.684 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.005083, allocations: 71.77 kB / 270.8 MB, free: 3.613 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.148e-05/0.005124, allocations: 20 kB / 270.8 MB, free: 3.594 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.841e-05/0.005223, allocations: 35.98 kB / 270.8 MB, free: 3.559 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.483e-05/0.005287, allocations: 59.81 kB / 270.9 MB, free: 3.5 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.349e-05/0.005361, allocations: 67.81 kB / 271 MB, free: 3.434 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002731/0.005634, allocations: 195.2 kB / 271.2 MB, free: 3.242 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.005638, allocations: 0 / 271.2 MB, free: 3.242 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.005639, allocations: 0 / 271.2 MB, free: 3.242 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.005644, allocations: 0 / 271.2 MB, free: 3.242 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.0005683/0.006212, allocations: 0.5151 MB / 271.7 MB, free: 2.691 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.006251, allocations: 8.031 kB / 271.7 MB, free: 2.684 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.991e-05/0.006331, allocations: 44.8 kB / 271.7 MB, free: 2.641 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002273/0.006558, allocations: 176.3 kB / 271.9 MB, free: 2.441 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.169e-05/0.00659, allocations: 20.88 kB / 271.9 MB, free: 2.422 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.199e-05/0.006622, allocations: 28.36 kB / 271.9 MB, free: 2.395 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003146/0.006936, allocations: 252.8 kB / 272.2 MB, free: 2.117 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.006949, allocations: 4.125 kB / 272.2 MB, free: 2.113 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.006972, allocations: 12.38 kB / 272.2 MB, free: 2.102 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.006981, allocations: 4.375 kB / 272.2 MB, free: 2.098 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001576/0.007139, allocations: 106.8 kB / 272.3 MB, free: 1.996 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.008164, allocations: 1.072 MB / 273.4 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002257/0.00839, allocations: 150.3 kB / 273.5 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.398e-05/0.008464, allocations: 66.44 kB / 273.6 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.008485, allocations: 8 kB / 273.6 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001617/0.008647, allocations: 144.1 kB / 273.8 MB, free: 460 kB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.292e-06/0.008648, allocations: 7.938 kB / 273.8 MB, free: 452 kB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003257/0.008974, allocations: 191.8 kB / 273.9 MB, free: 256 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.35e-05/0.009027, allocations: 85.05 kB / 274 MB, free: 152 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.009168, allocations: 217.1 kB / 274.2 MB, free: 15.92 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.00919, allocations: 37.7 kB / 274.3 MB, free: 15.88 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.781e-05/0.009278, allocations: 195.4 kB / 274.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.663e-05/0.009314, allocations: 59.52 kB / 274.5 MB, free: 15.62 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.588e-05/0.0094, allocations: 83.47 kB / 274.6 MB, free: 15.53 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.009552, allocations: 0.504 MB / 275.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.823e-05/0.00963, allocations: 43.75 kB / 275.2 MB, free: 14.97 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000112/0.009742, allocations: 148.6 kB / 275.3 MB, free: 14.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002436/0.009986, allocations: 196.6 kB / 275.5 MB, free: 14.55 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.009989, allocations: 0 / 275.5 MB, free: 14.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002453/0.01023, allocations: 233.2 kB / 275.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.01025, allocations: 8 kB / 275.7 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.01026, allocations: 0 / 275.7 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.01028, allocations: 4 kB / 275.7 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.01038, allocations: 40.19 kB / 275.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.01039, allocations: 11.94 kB / 275.8 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.484e-05/0.01046, allocations: 27.83 kB / 275.8 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.941e-05/0.01048, allocations: 12 kB / 275.8 MB, free: 14.21 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.0001055/0.01058, allocations: 184.5 kB / 276 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.79e-05/0.01061, allocations: 31.83 kB / 276 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002269/0.01084, allocations: 162.5 kB / 276.2 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.01084, allocations: 7.938 kB / 276.2 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.01084, allocations: 0 / 276.2 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.01085, allocations: 3.984 kB / 276.2 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004561/0.01131, allocations: 0.536 MB / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.01131, allocations: 4 kB / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-05/0.01135, allocations: 12 kB / 276.8 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.01136, allocations: 4 kB / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.01137, allocations: 7.984 kB / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.01137, allocations: 4 kB / 276.8 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.01137, allocations: 0 / 276.8 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000216/0.01159, allocations: 339.7 kB / 277.1 MB, free: 12.85 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.457e-05/0.0116, allocations: 19.84 kB / 277.1 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.922e-05/0.01162, allocations: 0 / 277.1 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.005e-05/0.01167, allocations: 15.98 kB / 277.1 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.722e-05/0.01173, allocations: 19.97 kB / 277.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.01174, allocations: 7.984 kB / 277.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000179/0.01192, allocations: 143.1 kB / 277.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01192, allocations: 3.938 kB / 277.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002117/0.01213, allocations: 51.89 kB / 277.4 MB, free: 12.59 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.0001376/0.01227, allocations: 110.9 kB / 277.5 MB, free: 12.47 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002302/0.0125, allocations: 164 kB / 277.6 MB, free: 12.31 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.0125, allocations: 0 / 277.6 MB, free: 12.31 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.003e-05/0.01258, allocations: 79.47 kB / 277.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002171/0.0128, allocations: 35.92 kB / 277.7 MB, free: 12.19 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004683/0.01327, allocations: 342.8 kB / 278.1 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.344e-05/0.01332, allocations: 84.27 kB / 278.2 MB, free: 11.72 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.838e-05/0.01338, allocations: 22.27 kB / 278.2 MB, free: 11.7 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.782e-05/0.01343, allocations: 28.48 kB / 278.2 MB, free: 11.67 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.01343, allocations: 0 / 278.2 MB, free: 11.67 MB / 266.7 MB Notification: Performance of Templates: time 0.003991/0.01742, allocations: 1.945 MB / 280.2 MB, free: 9.758 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: 3.0522788600064814]