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.001752/0.001752, allocations: 96.25 kB / 20.96 MB, free: 3.469 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.002216/0.002216, allocations: 156.9 kB / 24.27 MB, free: 172 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 1.472/1.472, allocations: 177 MB / 204.4 MB, free: 5.625 MB / 186.7 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,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 2.254e-06/2.254e-06, allocations: 0 / 272.2 MB, free: 1.852 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.265e-05/3.491e-05, allocations: 6.25 kB / 272.2 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003839/0.003874, allocations: 1.481 MB / 273.6 MB, free: 360 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009051/0.004779, allocations: 287.1 kB / 273.9 MB, free: 72 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.004918, allocations: 7.938 kB / 273.9 MB, free: 64 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.005086, allocations: 23.73 kB / 274 MB, free: 40 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.479e-05/0.005141, allocations: 15.81 kB / 274 MB, free: 24 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004826/0.005624, allocations: 123.8 kB / 274.1 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003756/0.005999, allocations: 267.5 kB / 274.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002878/0.006287, allocations: 138.8 kB / 274.5 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001797/0.006467, allocations: 131.8 kB / 274.6 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.006602, allocations: 67.78 kB / 274.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.251e-05/0.006645, allocations: 24 kB / 274.7 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.046e-05/0.006715, allocations: 27.98 kB / 274.7 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.332e-05/0.006789, allocations: 59.81 kB / 274.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.985e-05/0.006889, allocations: 63.81 kB / 274.9 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003956/0.007284, allocations: 255 kB / 275.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.007288, allocations: 0 / 275.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.007289, allocations: 0 / 275.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.007295, allocations: 0 / 275.1 MB, free: 14.89 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.0008871/0.008182, allocations: 409.1 kB / 275.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.876e-05/0.008241, allocations: 15.98 kB / 275.5 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003011/0.008542, allocations: 44.83 kB / 275.6 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004327/0.008975, allocations: 173.5 kB / 275.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.766e-05/0.009022, allocations: 24.81 kB / 275.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.824e-05/0.009071, allocations: 32.31 kB / 275.8 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004856/0.009556, allocations: 231.3 kB / 276 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.009569, allocations: 192 / 276 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.194e-05/0.009601, allocations: 12.38 kB / 276 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.00961, allocations: 4.375 kB / 276 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003435/0.009954, allocations: 157.9 kB / 276.2 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.01098, allocations: 0.5855 MB / 276.8 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002982/0.01128, allocations: 150.8 kB / 276.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001481/0.01143, allocations: 76.83 kB / 277 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.01145, allocations: 4 kB / 277 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002029/0.01166, allocations: 113.6 kB / 277.1 MB, free: 12.76 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.213e-06/0.01166, allocations: 0 / 277.1 MB, free: 12.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004863/0.01214, allocations: 229.3 kB / 277.3 MB, free: 12.53 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.01219, allocations: 55.41 kB / 277.4 MB, free: 12.46 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001472/0.01234, allocations: 153.8 kB / 277.5 MB, free: 12.31 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.652e-05/0.01238, allocations: 33.7 kB / 277.6 MB, free: 12.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.01248, allocations: 132.8 kB / 277.7 MB, free: 12.13 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.277e-05/0.01255, allocations: 63.47 kB / 277.8 MB, free: 12.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.01265, allocations: 86 kB / 277.8 MB, free: 11.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002212/0.01287, allocations: 322.8 kB / 278.2 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001195/0.01299, allocations: 60.62 kB / 278.2 MB, free: 11.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.01317, allocations: 132.1 kB / 278.4 MB, free: 11.44 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002625/0.01343, allocations: 170.6 kB / 278.5 MB, free: 11.25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.01343, allocations: 4 kB / 278.5 MB, free: 11.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004153/0.01385, allocations: 249.3 kB / 278.8 MB, free: 11 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.01387, allocations: 11.98 kB / 278.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.01387, allocations: 0 / 278.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.01389, allocations: 7.938 kB / 278.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.01403, allocations: 31.92 kB / 278.8 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.01404, allocations: 7.938 kB / 278.8 MB, free: 10.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.978e-05/0.01414, allocations: 28.06 kB / 278.9 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.001e-05/0.01416, allocations: 12 kB / 278.9 MB, free: 10.9 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.0001709/0.01433, allocations: 149.8 kB / 279 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.944e-05/0.01437, allocations: 27.84 kB / 279 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.202e-05/0.01442, allocations: 16.94 kB / 279.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.01443, allocations: 7.938 kB / 279.1 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.01444, allocations: 0 / 279.1 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.01444, allocations: 3.984 kB / 279.1 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007421/0.01518, allocations: 471.7 kB / 279.5 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.01519, allocations: 4 kB / 279.5 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.553e-05/0.01526, allocations: 15.98 kB / 279.5 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.01526, allocations: 0 / 279.5 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.01528, allocations: 8 kB / 279.6 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.01528, allocations: 0 / 279.6 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.01528, allocations: 0 / 279.6 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004492/0.01573, allocations: 295.9 kB / 279.8 MB, free: 9.855 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.119e-05/0.01575, allocations: 15.84 kB / 279.9 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.296e-05/0.01578, allocations: 0 / 279.9 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.651e-05/0.01586, allocations: 8 kB / 279.9 MB, free: 9.832 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.709e-05/0.01595, allocations: 27.95 kB / 279.9 MB, free: 9.805 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.601e-05/0.01597, allocations: 12 kB / 279.9 MB, free: 9.793 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.155e-05/0.01604, allocations: 91.27 kB / 280 MB, free: 9.703 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01604, allocations: 0 / 280 MB, free: 9.703 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002969/0.01633, allocations: 47.89 kB / 280 MB, free: 9.656 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.0001426/0.01648, allocations: 107.2 kB / 280.1 MB, free: 9.543 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003314/0.01681, allocations: 159.8 kB / 280.3 MB, free: 9.387 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.01681, allocations: 448 / 280.3 MB, free: 9.387 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001375/0.01695, allocations: 79.77 kB / 280.4 MB, free: 9.309 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003012/0.01725, allocations: 23.92 kB / 280.4 MB, free: 9.285 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006584/0.01791, allocations: 329.6 kB / 280.7 MB, free: 8.938 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001383/0.01805, allocations: 112.2 kB / 280.8 MB, free: 8.809 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.128e-05/0.01812, allocations: 21.95 kB / 280.9 MB, free: 8.785 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.986e-05/0.01818, allocations: 20.5 kB / 280.9 MB, free: 8.766 MB / 266.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01818, allocations: 0 / 280.9 MB, free: 8.766 MB / 266.7 MB Notification: Performance of Templates: time 0.005216/0.02339, allocations: 1.716 MB / 282.6 MB, free: 7.07 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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.334818653995171]