Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001678/0.001678, allocations: 114 kB / 17.83 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001542/0.001542, allocations: 205.2 kB / 18.78 MB, free: 4.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.537/1.537, allocations: 230.4 MB / 250 MB, free: 9.098 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 63.84 kB / 367.3 MB, free: 7.098 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4016/0.4036, allocations: 53.31 MB / 420.6 MB, free: 8.387 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00312/0.4067, allocations: 1.505 MB / 422.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007739/0.4075, allocations: 275.2 kB / 422.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.809e-05/0.4076, allocations: 3.938 kB / 422.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001617/0.4078, allocations: 27.73 kB / 422.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.641e-05/0.4078, allocations: 19.81 kB / 422.4 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004677/0.4083, allocations: 111.8 kB / 422.6 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003593/0.4086, allocations: 259.6 kB / 422.8 MB, free: 6.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003096/0.409, allocations: 149.8 kB / 423 MB, free: 6.043 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001236/0.4091, allocations: 79.78 kB / 423 MB, free: 5.965 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001631/0.4092, allocations: 103.6 kB / 423.1 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.02e-05/0.4093, allocations: 31.88 kB / 423.2 MB, free: 5.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.535e-05/0.4094, allocations: 24 kB / 423.2 MB, free: 5.809 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.08e-05/0.4094, allocations: 51.89 kB / 423.2 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001169/0.4096, allocations: 99.52 kB / 423.3 MB, free: 5.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003739/0.4099, allocations: 242.8 kB / 423.6 MB, free: 5.426 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.4099, allocations: 0 / 423.6 MB, free: 5.426 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.886e-06/0.4099, allocations: 0 / 423.6 MB, free: 5.426 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.41, allocations: 0 / 423.6 MB, free: 5.426 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.0008436/0.4108, allocations: 494.2 kB / 424.1 MB, free: 4.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.4108, allocations: 15.97 kB / 424.1 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003121/0.4112, allocations: 32.83 kB / 424.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004516/0.4116, allocations: 232 kB / 424.3 MB, free: 4.578 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.905e-05/0.4117, allocations: 16.94 kB / 424.3 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.169e-05/0.4117, allocations: 28.38 kB / 424.4 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004665/0.4122, allocations: 236 kB / 424.6 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.4122, allocations: 192 / 424.6 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.4122, allocations: 19.94 kB / 424.6 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.4122, allocations: 4 kB / 424.6 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003402/0.4126, allocations: 157.6 kB / 424.8 MB, free: 4.113 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00118/0.4137, allocations: 0.6897 MB / 425.5 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003199/0.4141, allocations: 158.8 kB / 425.6 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.4142, allocations: 64.83 kB / 425.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.4142, allocations: 4 kB / 425.7 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002089/0.4144, allocations: 123.3 kB / 425.8 MB, free: 3.004 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.442e-06/0.4144, allocations: 0 / 425.8 MB, free: 3.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004775/0.4149, allocations: 220.8 kB / 426 MB, free: 2.785 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.4149, allocations: 63.39 kB / 426.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.4151, allocations: 145 kB / 426.2 MB, free: 2.562 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/0.4151, allocations: 37.7 kB / 426.3 MB, free: 2.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.852e-05/0.4152, allocations: 128.9 kB / 426.4 MB, free: 2.391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.896e-05/0.4153, allocations: 67.48 kB / 426.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.4154, allocations: 70.02 kB / 426.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.4155, allocations: 326.8 kB / 426.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.4156, allocations: 60.62 kB / 426.9 MB, free: 1.859 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00018/0.4158, allocations: 128.1 kB / 427 MB, free: 1.711 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002796/0.4161, allocations: 179.1 kB / 427.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4161, allocations: 0 / 427.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000426/0.4165, allocations: 237.3 kB / 427.4 MB, free: 1.273 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.4166, allocations: 8.219 kB / 427.4 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.4166, allocations: 4 kB / 427.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.385e-05/0.4166, allocations: 4 kB / 427.5 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.4167, allocations: 31.92 kB / 427.5 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.4167, allocations: 4 kB / 427.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.4169, allocations: 35.7 kB / 427.5 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.202e-05/0.4169, allocations: 12 kB / 427.5 MB, free: 1.176 MB / 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.0002377/0.4171, allocations: 145.8 kB / 427.7 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.545e-05/0.4171, allocations: 15.89 kB / 427.7 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.71e-05/0.4172, allocations: 24.83 kB / 427.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.365e-06/0.4172, allocations: 7.984 kB / 427.7 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4172, allocations: 0 / 427.7 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.4172, allocations: 0 / 427.7 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000768/0.418, allocations: 0.5569 MB / 428.3 MB, free: 372 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.418, allocations: 3.938 kB / 428.3 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.712e-05/0.4181, allocations: 19.98 kB / 428.3 MB, free: 348 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.4181, allocations: 0 / 428.3 MB, free: 348 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.4181, allocations: 4 kB / 428.3 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.4181, allocations: 4 kB / 428.3 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.4181, allocations: 0 / 428.3 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003446/0.4184, allocations: 274.7 kB / 428.6 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.598e-05/0.4185, allocations: 92.98 kB / 428.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.919e-05/0.4185, allocations: 8 kB / 428.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.249e-05/0.4186, allocations: 4 kB / 428.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.026e-05/0.4187, allocations: 23.97 kB / 428.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.4187, allocations: 11.94 kB / 428.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.394e-05/0.4188, allocations: 99.27 kB / 428.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4188, allocations: 0 / 428.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003013/0.4191, allocations: 51.84 kB / 428.9 MB, free: 15.75 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.0001366/0.4192, allocations: 99.23 kB / 429 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003301/0.4196, allocations: 172 kB / 429.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4196, allocations: 448 / 429.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001286/0.4197, allocations: 71.92 kB / 429.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.42, allocations: 22.48 kB / 429.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006587/0.4207, allocations: 315.4 kB / 429.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004175/0.4211, allocations: 0.7323 MB / 430.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.778e-05/0.4212, allocations: 21.94 kB / 430.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.73e-05/0.4212, allocations: 19.44 kB / 430.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4212, allocations: 0 / 430.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of Templates: time 0.005917/0.4271, allocations: 1.702 MB / 432 MB, free: 12.55 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches