Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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.001626/0.001626, allocations: 75.75 kB / 21.97 MB, free: 2.605 MB / 18.57 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.001059/0.001059, allocations: 168.1 kB / 25.33 MB, free: 9.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8723/0.8723, allocations: 158.6 MB / 187.2 MB, free: 2.551 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.495e-06/2.495e-06, allocations: 0 / 251 MB, free: 3.629 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.309e-05/2.559e-05, allocations: 2.312 kB / 251 MB, free: 3.625 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002133/0.002158, allocations: 1.505 MB / 252.5 MB, free: 2.105 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.000598/0.002756, allocations: 247.2 kB / 252.8 MB, free: 1.863 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.002857, allocations: 4 kB / 252.8 MB, free: 1.859 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001365/0.002994, allocations: 27.67 kB / 252.8 MB, free: 1.832 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.167e-05/0.003046, allocations: 19.81 kB / 252.8 MB, free: 1.812 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004773/0.003523, allocations: 119.8 kB / 252.9 MB, free: 1.695 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000278/0.003801, allocations: 263.5 kB / 253.2 MB, free: 1.438 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002642/0.004065, allocations: 138.8 kB / 253.3 MB, free: 1.301 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001204/0.004186, allocations: 127.8 kB / 253.4 MB, free: 1.176 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.004297, allocations: 75.7 kB / 253.5 MB, free: 1.102 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.007e-05/0.004327, allocations: 20 kB / 253.5 MB, free: 1.082 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.565e-05/0.004402, allocations: 35.98 kB / 253.6 MB, free: 1.047 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.415e-05/0.004457, allocations: 55.81 kB / 253.6 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.437e-05/0.004521, allocations: 67.81 kB / 253.7 MB, free: 0.9258 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002575/0.004778, allocations: 179.3 kB / 253.9 MB, free: 0.75 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.00478, allocations: 0 / 253.9 MB, free: 0.75 MB / 234.7 MB Notification: Performance of FrontEnd: time 4.31e-07/0.004781, allocations: 0 / 253.9 MB, free: 0.75 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.004785, allocations: 0 / 253.9 MB, free: 0.75 MB / 234.7 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.0005708/0.005356, allocations: 0.5033 MB / 254.4 MB, free: 212 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.005404, allocations: 11.98 kB / 254.4 MB, free: 200 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.302e-05/0.005477, allocations: 40.83 kB / 254.4 MB, free: 160 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002438/0.005721, allocations: 176.3 kB / 254.6 MB, free: 15.96 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.455e-05/0.005756, allocations: 24.86 kB / 254.6 MB, free: 15.93 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.938e-05/0.005785, allocations: 24.38 kB / 254.6 MB, free: 15.91 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003052/0.00609, allocations: 213.7 kB / 254.9 MB, free: 15.68 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.006104, allocations: 192 / 254.9 MB, free: 15.68 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.933e-05/0.006123, allocations: 12.3 kB / 254.9 MB, free: 15.67 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.006134, allocations: 8.375 kB / 254.9 MB, free: 15.66 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001443/0.006278, allocations: 94.81 kB / 255 MB, free: 15.57 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007975/0.007076, allocations: 0.6695 MB / 255.6 MB, free: 14.86 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002165/0.007292, allocations: 154.9 kB / 255.8 MB, free: 14.7 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.298e-05/0.007365, allocations: 55.66 kB / 255.8 MB, free: 14.64 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.007386, allocations: 4 kB / 255.8 MB, free: 14.64 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001319/0.007518, allocations: 112.8 kB / 256 MB, free: 14.51 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.784e-06/0.00752, allocations: 4 kB / 256 MB, free: 14.51 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003618/0.007882, allocations: 193.9 kB / 256.1 MB, free: 14.31 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.007923, allocations: 59.39 kB / 256.2 MB, free: 14.24 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.008044, allocations: 201.8 kB / 256.4 MB, free: 14.03 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.008068, allocations: 41.69 kB / 256.4 MB, free: 13.98 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.188e-05/0.00815, allocations: 175.5 kB / 256.6 MB, free: 13.8 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.952e-05/0.008189, allocations: 67.48 kB / 256.7 MB, free: 13.74 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.741e-05/0.008267, allocations: 83.67 kB / 256.8 MB, free: 13.64 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.00021/0.008477, allocations: 0.4962 MB / 257.3 MB, free: 13.14 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.238e-05/0.008539, allocations: 40.62 kB / 257.3 MB, free: 13.1 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.008644, allocations: 130.7 kB / 257.4 MB, free: 12.94 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.008802, allocations: 157.4 kB / 257.6 MB, free: 12.75 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.008805, allocations: 4 kB / 257.6 MB, free: 12.75 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000231/0.009036, allocations: 221.3 kB / 257.8 MB, free: 12.52 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.009052, allocations: 10.95 kB / 257.8 MB, free: 12.52 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.009059, allocations: 4 kB / 257.8 MB, free: 12.51 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.381e-05/0.009083, allocations: 7.938 kB / 257.8 MB, free: 12.5 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001/0.009183, allocations: 31.92 kB / 257.9 MB, free: 12.47 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.009193, allocations: 8.156 kB / 257.9 MB, free: 12.46 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.74e-05/0.00925, allocations: 27.84 kB / 257.9 MB, free: 12.44 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.567e-05/0.009276, allocations: 15.97 kB / 257.9 MB, free: 12.42 MB / 250.7 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.0001055/0.009381, allocations: 188.5 kB / 258.1 MB, free: 12.23 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.247e-05/0.009404, allocations: 23.91 kB / 258.1 MB, free: 12.2 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002184/0.009622, allocations: 178.4 kB / 258.3 MB, free: 12.02 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.009626, allocations: 7.938 kB / 258.3 MB, free: 12.01 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.00963, allocations: 0 / 258.3 MB, free: 12.01 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.009636, allocations: 0 / 258.3 MB, free: 12.01 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006142/0.01025, allocations: 0.5088 MB / 258.8 MB, free: 11.46 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.768e-06/0.01025, allocations: 4 kB / 258.8 MB, free: 11.46 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.379e-05/0.0103, allocations: 19.92 kB / 258.8 MB, free: 11.44 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.0103, allocations: 0 / 258.8 MB, free: 11.44 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.01031, allocations: 4 kB / 258.8 MB, free: 11.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.01031, allocations: 4 kB / 258.8 MB, free: 11.43 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.01032, allocations: 0 / 258.8 MB, free: 11.43 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002146/0.01053, allocations: 323.6 kB / 259.1 MB, free: 11.09 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.194e-05/0.01054, allocations: 11.91 kB / 259.2 MB, free: 11.08 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.01056, allocations: 12 kB / 259.2 MB, free: 11.07 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.118e-05/0.0106, allocations: 3.984 kB / 259.2 MB, free: 11.07 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.915e-05/0.01067, allocations: 27.95 kB / 259.2 MB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.01068, allocations: 8 kB / 259.2 MB, free: 11.03 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.865e-05/0.01073, allocations: 137.7 kB / 259.3 MB, free: 10.9 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01073, allocations: 0 / 259.3 MB, free: 10.9 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000202/0.01093, allocations: 47.89 kB / 259.4 MB, free: 10.85 MB / 250.7 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.0002635/0.0112, allocations: 111.2 kB / 259.5 MB, free: 10.73 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003696/0.01157, allocations: 156.7 kB / 259.7 MB, free: 10.58 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.01157, allocations: 4.375 kB / 259.7 MB, free: 10.57 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001099/0.01168, allocations: 79.53 kB / 259.7 MB, free: 10.49 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003001/0.01198, allocations: 27.92 kB / 259.8 MB, free: 10.46 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006329/0.01261, allocations: 319.3 kB / 260.1 MB, free: 10.12 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.211e-05/0.01268, allocations: 80.33 kB / 260.2 MB, free: 10.02 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.611e-05/0.01276, allocations: 21.94 kB / 260.2 MB, free: 10 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.255e-05/0.01283, allocations: 28.5 kB / 260.2 MB, free: 9.973 MB / 250.7 MB Notification: Performance of SimCode: time 2.354e-06/0.01284, allocations: 0 / 260.2 MB, free: 9.973 MB / 250.7 MB Notification: Performance of Templates: time 0.005309/0.01814, allocations: 1.957 MB / 262.2 MB, free: 8.031 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.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.8782699164003134]