Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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.001493/0.001493, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 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.001753/0.001753, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 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 0.9938/0.9938, allocations: 177 MB / 204.8 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.336e-06/3.336e-06, allocations: 4 kB / 272.9 MB, free: 1.508 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.901e-05/3.235e-05, allocations: 5.266 kB / 272.9 MB, free: 1.504 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.005601/0.005634, allocations: 1.529 MB / 274.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006293/0.006263, allocations: 287.1 kB / 274.7 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.139e-05/0.006354, allocations: 7.938 kB / 274.7 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.006491, allocations: 23.75 kB / 274.7 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.747e-05/0.006539, allocations: 15.8 kB / 274.7 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003511/0.01005, allocations: 127.7 kB / 274.9 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003076/0.01036, allocations: 263.4 kB / 275.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002892/0.01065, allocations: 139.7 kB / 275.3 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.01079, allocations: 135.7 kB / 275.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001271/0.01091, allocations: 67.77 kB / 275.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.3e-05/0.01095, allocations: 24 kB / 275.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.254e-05/0.01101, allocations: 24 kB / 275.5 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.834e-05/0.01107, allocations: 51.83 kB / 275.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.398e-05/0.01114, allocations: 71.81 kB / 275.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000265/0.01141, allocations: 183.2 kB / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.01141, allocations: 4 kB / 275.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.01141, allocations: 4 kB / 275.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.01142, allocations: 0 / 275.8 MB, free: 14.56 MB / 266.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.003655/0.01507, allocations: 0.4955 MB / 276.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.01512, allocations: 11.98 kB / 276.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002222/0.01534, allocations: 52.78 kB / 276.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00024/0.01558, allocations: 168.3 kB / 276.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.587e-05/0.01562, allocations: 20.88 kB / 276.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.167e-05/0.01565, allocations: 24.38 kB / 276.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003268/0.01597, allocations: 213.6 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.01598, allocations: 4.188 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.122e-05/0.01601, allocations: 8.375 kB / 276.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.01602, allocations: 12.36 kB / 276.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001695/0.01619, allocations: 86.88 kB / 276.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000829/0.01702, allocations: 0.6695 MB / 277.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002461/0.01726, allocations: 131.4 kB / 277.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.01e-05/0.01734, allocations: 59.59 kB / 277.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.774e-05/0.01736, allocations: 4 kB / 277.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001532/0.01751, allocations: 105 kB / 277.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.614e-06/0.01752, allocations: 4 kB / 277.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003395/0.01786, allocations: 190.8 kB / 278 MB, free: 12.16 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.01789, allocations: 59.34 kB / 278.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.01802, allocations: 205.8 kB / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.382e-05/0.01804, allocations: 37.7 kB / 278.3 MB, free: 11.83 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.95e-05/0.01813, allocations: 175.5 kB / 278.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.62e-05/0.01817, allocations: 71.47 kB / 278.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003294/0.02147, allocations: 75.67 kB / 278.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.02159, allocations: 0.5001 MB / 279.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.075e-05/0.02167, allocations: 40.62 kB / 279.2 MB, free: 10.95 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.02179, allocations: 126.7 kB / 279.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001864/0.02198, allocations: 169.3 kB / 279.5 MB, free: 10.59 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.02198, allocations: 4 kB / 279.5 MB, free: 10.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003023/0.02228, allocations: 221.4 kB / 279.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.0223, allocations: 10.81 kB / 279.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.02231, allocations: 3.938 kB / 279.7 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.368e-05/0.02233, allocations: 7.938 kB / 279.7 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.02247, allocations: 31.92 kB / 279.8 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.02248, allocations: 4 kB / 279.8 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.912e-05/0.02256, allocations: 27.84 kB / 279.8 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.02257, allocations: 8 kB / 279.8 MB, free: 10.27 MB / 266.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.0001196/0.02269, allocations: 192.5 kB / 280 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.917e-05/0.02272, allocations: 27.91 kB / 280 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.237e-05/0.02277, allocations: 16.94 kB / 280 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.02277, allocations: 3.938 kB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.02278, allocations: 4 kB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.02278, allocations: 3.984 kB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005751/0.02336, allocations: 0.4943 MB / 280.5 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-06/0.02336, allocations: 3.938 kB / 280.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.434e-05/0.02342, allocations: 15.98 kB / 280.6 MB, free: 9.461 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.02343, allocations: 0 / 280.6 MB, free: 9.461 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.02344, allocations: 4 kB / 280.6 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.02344, allocations: 8 kB / 280.6 MB, free: 9.449 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.02344, allocations: 0 / 280.6 MB, free: 9.449 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002522/0.0237, allocations: 313.1 kB / 280.9 MB, free: 9.125 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.81e-05/0.02371, allocations: 19.83 kB / 280.9 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.292e-05/0.02374, allocations: 8 kB / 280.9 MB, free: 9.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.932e-05/0.02381, allocations: 8 kB / 280.9 MB, free: 9.09 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.315e-05/0.02387, allocations: 23.81 kB / 280.9 MB, free: 9.066 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.02388, allocations: 8 kB / 280.9 MB, free: 9.059 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.126e-05/0.02393, allocations: 134.8 kB / 281.1 MB, free: 8.93 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02393, allocations: 0 / 281.1 MB, free: 8.93 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002857/0.02422, allocations: 51.89 kB / 281.1 MB, free: 8.879 MB / 266.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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$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 (24): * Single equations (assignments): 20 * 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.003129/0.02735, allocations: 103.2 kB / 281.2 MB, free: 8.77 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002764/0.02762, allocations: 147.5 kB / 281.4 MB, free: 8.621 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.02763, allocations: 0 / 281.4 MB, free: 8.621 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.02773, allocations: 71.59 kB / 281.4 MB, free: 8.547 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002933/0.02802, allocations: 23.92 kB / 281.5 MB, free: 8.523 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005139/0.02853, allocations: 315.6 kB / 281.8 MB, free: 8.188 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.592e-05/0.02859, allocations: 83.98 kB / 281.8 MB, free: 8.086 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.483e-05/0.02865, allocations: 21.94 kB / 281.9 MB, free: 8.062 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.603e-05/0.02871, allocations: 24.44 kB / 281.9 MB, free: 8.039 MB / 266.7 MB Notification: Performance of SimCode: time 7.02e-07/0.02871, allocations: 0 / 281.9 MB, free: 8.039 MB / 266.7 MB Notification: Performance of Templates: time 0.008499/0.03721, allocations: 1.798 MB / 283.7 MB, free: 6.262 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.886552139185369]