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.001891/0.001891, allocations: 107 kB / 19.8 MB, free: 2.5 MB / 14.72 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.002541/0.002541, allocations: 219.1 kB / 23 MB, free: 5.57 MB / 14.72 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.633/1.633, allocations: 230.2 MB / 256.2 MB, free: 8.531 MB / 206.1 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 0.001921/0.001921, allocations: 59.89 kB / 376.4 MB, free: 3.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.382/0.3839, allocations: 53.32 MB / 429.8 MB, free: 7.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002993/0.3869, allocations: 1.51 MB / 431.3 MB, free: 6.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006912/0.3876, allocations: 287.1 kB / 431.6 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.544e-05/0.3877, allocations: 4 kB / 431.6 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.3878, allocations: 23.62 kB / 431.6 MB, free: 5.711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.986e-05/0.3879, allocations: 19.86 kB / 431.6 MB, free: 5.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003723/0.3882, allocations: 107.8 kB / 431.7 MB, free: 5.586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003431/0.3886, allocations: 259.6 kB / 432 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002632/0.3889, allocations: 134.3 kB / 432.1 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.389, allocations: 91.75 kB / 432.2 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001458/0.3891, allocations: 91.55 kB / 432.3 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.192e-05/0.3891, allocations: 20 kB / 432.3 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.462e-05/0.3892, allocations: 35.98 kB / 432.3 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.089e-05/0.3893, allocations: 47.89 kB / 432.4 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.3894, allocations: 103.5 kB / 432.5 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003149/0.3897, allocations: 244.2 kB / 432.7 MB, free: 4.578 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3897, allocations: 4 kB / 432.7 MB, free: 4.574 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3897, allocations: 0 / 432.7 MB, free: 4.574 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.443e-06/0.3897, allocations: 0 / 432.7 MB, free: 4.574 MB / 334.1 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.0006913/0.3904, allocations: 490.2 kB / 433.2 MB, free: 4.043 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.3904, allocations: 8.031 kB / 433.2 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002119/0.3906, allocations: 32.78 kB / 433.2 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003203/0.391, allocations: 228.1 kB / 433.5 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.491e-05/0.391, allocations: 16.94 kB / 433.5 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.863e-05/0.391, allocations: 32.38 kB / 433.5 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000416/0.3914, allocations: 240 kB / 433.7 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.3915, allocations: 192 / 433.7 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.588e-05/0.3915, allocations: 11.94 kB / 433.7 MB, free: 3.441 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.3915, allocations: 4 kB / 433.8 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002994/0.3918, allocations: 157.7 kB / 433.9 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009899/0.3928, allocations: 0.6936 MB / 434.6 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003038/0.3931, allocations: 150.8 kB / 434.7 MB, free: 2.379 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/0.3932, allocations: 68.92 kB / 434.8 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.64e-05/0.3932, allocations: 4 kB / 434.8 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000212/0.3934, allocations: 123.2 kB / 434.9 MB, free: 2.172 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.472e-06/0.3934, allocations: 0 / 434.9 MB, free: 2.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004375/0.3939, allocations: 216.7 kB / 435.1 MB, free: 1.957 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/0.3939, allocations: 55.41 kB / 435.2 MB, free: 1.891 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.3941, allocations: 153.2 kB / 435.4 MB, free: 1.734 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.3941, allocations: 37.69 kB / 435.4 MB, free: 1.691 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.3942, allocations: 132.8 kB / 435.5 MB, free: 1.559 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.084e-05/0.3943, allocations: 67.47 kB / 435.6 MB, free: 1.492 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.3944, allocations: 78.02 kB / 435.7 MB, free: 1.406 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002384/0.3946, allocations: 326.8 kB / 436 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001178/0.3947, allocations: 60.58 kB / 436 MB, free: 1.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/0.3949, allocations: 128.1 kB / 436.2 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002527/0.3952, allocations: 179.1 kB / 436.3 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3952, allocations: 0 / 436.3 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004067/0.3956, allocations: 241.3 kB / 436.6 MB, free: 440 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.3956, allocations: 8 kB / 436.6 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.3956, allocations: 3.938 kB / 436.6 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.343e-05/0.3956, allocations: 4 kB / 436.6 MB, free: 424 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.3958, allocations: 31.86 kB / 436.6 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.3958, allocations: 4 kB / 436.6 MB, free: 388 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.527e-05/0.3959, allocations: 31.77 kB / 436.7 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.988e-05/0.3959, allocations: 12.22 kB / 436.7 MB, free: 344 kB / 334.1 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.0001716/0.3961, allocations: 157.8 kB / 436.8 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.508e-05/0.3961, allocations: 19.84 kB / 436.8 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.876e-05/0.3961, allocations: 16.83 kB / 436.9 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.3961, allocations: 4 kB / 436.9 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3962, allocations: 0 / 436.9 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3962, allocations: 0 / 436.9 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000772/0.3969, allocations: 0.5493 MB / 437.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3969, allocations: 4 kB / 437.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.425e-05/0.397, allocations: 19.92 kB / 437.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.397, allocations: 0 / 437.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.397, allocations: 8 kB / 437.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.397, allocations: 0 / 437.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.397, allocations: 0 / 437.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000343/0.3974, allocations: 273.1 kB / 437.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.585e-05/0.3974, allocations: 89 kB / 437.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.394e-05/0.3975, allocations: 8 kB / 437.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.372e-05/0.3975, allocations: 7.984 kB / 437.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.225e-05/0.3976, allocations: 19.98 kB / 437.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.3976, allocations: 11.92 kB / 437.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.607e-05/0.3977, allocations: 103.3 kB / 437.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3977, allocations: 0 / 437.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002855/0.398, allocations: 47.91 kB / 438 MB, free: 14.91 MB / 350.1 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.000116/0.3981, allocations: 103.2 kB / 438.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003408/0.3984, allocations: 165.3 kB / 438.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3984, allocations: 0 / 438.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.3986, allocations: 71.84 kB / 438.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002756/0.3988, allocations: 27.92 kB / 438.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006008/0.3994, allocations: 323.7 kB / 438.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004075/0.3999, allocations: 0.7327 MB / 439.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.623e-05/0.3999, allocations: 17.94 kB / 439.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.655e-05/0.4, allocations: 23.38 kB / 439.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4, allocations: 4 kB / 439.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of Templates: time 0.004894/0.4049, allocations: 1.725 MB / 441.2 MB, free: 11.67 MB / 350.1 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: 5.10694217029959]