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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001464/0.001464, allocations: 118.2 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001613/0.001613, allocations: 202 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.626/1.626, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 63.89 kB / 358.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4869/0.4882, allocations: 50.54 MB / 409.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002862/0.4911, allocations: 1.497 MB / 410.7 MB, free: 108 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007233/0.4919, allocations: 271.2 kB / 411 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.492, allocations: 4 kB / 411 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001552/0.4921, allocations: 19.75 kB / 411 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.136e-05/0.4922, allocations: 19.78 kB / 411 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004656/0.4927, allocations: 115.8 kB / 411.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003586/0.493, allocations: 251.6 kB / 411.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003381/0.4934, allocations: 174.2 kB / 411.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.4935, allocations: 87.75 kB / 411.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001474/0.4937, allocations: 91.61 kB / 411.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.452e-05/0.4937, allocations: 27.94 kB / 411.8 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.288e-05/0.4938, allocations: 28 kB / 411.8 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.249e-05/0.4939, allocations: 55.88 kB / 411.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.494, allocations: 91.53 kB / 411.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003117/0.4943, allocations: 243.1 kB / 412.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.4943, allocations: 0 / 412.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.4943, allocations: 7.938 kB / 412.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.4943, allocations: 0 / 412.2 MB, free: 14.64 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.0007705/0.4951, allocations: 479.8 kB / 412.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.4952, allocations: 12.03 kB / 412.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002516/0.4954, allocations: 36.58 kB / 412.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003602/0.4958, allocations: 228 kB / 412.9 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.726e-05/0.4959, allocations: 16.94 kB / 412.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.189e-05/0.4959, allocations: 32.36 kB / 413 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005308/0.4964, allocations: 240 kB / 413.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.4965, allocations: 192 / 413.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.132e-05/0.4965, allocations: 11.94 kB / 413.2 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.4965, allocations: 8 kB / 413.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003098/0.4968, allocations: 161.6 kB / 413.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.4979, allocations: 0.6817 MB / 414.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003444/0.4983, allocations: 174.8 kB / 414.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001358/0.4984, allocations: 76.39 kB / 414.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.808e-05/0.4985, allocations: 4 kB / 414.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002359/0.4987, allocations: 119.3 kB / 414.4 MB, free: 12.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 5.32e-06/0.4987, allocations: 0 / 414.4 MB, free: 12.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005111/0.4993, allocations: 214.8 kB / 414.6 MB, free: 12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.678e-05/0.4993, allocations: 59.39 kB / 414.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.4995, allocations: 149.9 kB / 414.8 MB, free: 11.78 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.972e-05/0.4996, allocations: 37.7 kB / 414.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.4997, allocations: 132.6 kB / 415 MB, free: 11.6 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.756e-05/0.4998, allocations: 67.19 kB / 415.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.4999, allocations: 73.92 kB / 415.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.5001, allocations: 326.8 kB / 415.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.5002, allocations: 60.62 kB / 415.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.5004, allocations: 136 kB / 415.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002528/0.5006, allocations: 175.2 kB / 415.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.5006, allocations: 0 / 415.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004122/0.5011, allocations: 241.3 kB / 416.1 MB, free: 10.47 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.5011, allocations: 4 kB / 416.1 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.5011, allocations: 4.219 kB / 416.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.5011, allocations: 4 kB / 416.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.5013, allocations: 31.92 kB / 416.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.639e-05/0.5013, allocations: 4 kB / 416.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.97e-05/0.5014, allocations: 31.67 kB / 416.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.5014, allocations: 12 kB / 416.1 MB, free: 10.38 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.0001825/0.5016, allocations: 161.6 kB / 416.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.466e-05/0.5017, allocations: 15.75 kB / 416.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.33e-05/0.5017, allocations: 24.83 kB / 416.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.5017, allocations: 7.938 kB / 416.3 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.5018, allocations: 0 / 416.3 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.5018, allocations: 0 / 416.3 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007254/0.5025, allocations: 0.5375 MB / 416.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.5025, allocations: 0 / 416.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.24e-05/0.5026, allocations: 19.98 kB / 416.9 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.177e-06/0.5026, allocations: 4 kB / 416.9 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.5026, allocations: 0 / 416.9 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.5026, allocations: 0 / 416.9 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.5026, allocations: 4 kB / 416.9 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000292/0.5029, allocations: 278.8 kB / 417.2 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.407e-05/0.503, allocations: 88.95 kB / 417.3 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.74e-05/0.503, allocations: 8 kB / 417.3 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.5031, allocations: 8 kB / 417.3 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.537e-05/0.5032, allocations: 19.97 kB / 417.3 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.5032, allocations: 7.938 kB / 417.3 MB, free: 9.113 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.263e-05/0.5033, allocations: 103.3 kB / 417.4 MB, free: 9.012 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5033, allocations: 0 / 417.4 MB, free: 9.012 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002825/0.5036, allocations: 43.84 kB / 417.5 MB, free: 8.969 MB / 334.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.000151/0.5038, allocations: 107.2 kB / 417.6 MB, free: 8.855 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003311/0.5041, allocations: 176.1 kB / 417.7 MB, free: 8.684 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.5041, allocations: 0 / 417.7 MB, free: 8.684 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001249/0.5042, allocations: 76.36 kB / 417.8 MB, free: 8.609 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.5045, allocations: 30.8 kB / 417.8 MB, free: 8.582 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006397/0.5052, allocations: 321.3 kB / 418.2 MB, free: 8.234 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003938/0.5056, allocations: 0.7245 MB / 418.9 MB, free: 7.48 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.014e-05/0.5057, allocations: 29.92 kB / 418.9 MB, free: 7.453 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.38e-05/0.5057, allocations: 19.44 kB / 418.9 MB, free: 7.434 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.5057, allocations: 0 / 418.9 MB, free: 7.434 MB / 334.1 MB Notification: Performance of Templates: time 0.005042/0.5108, allocations: 1.674 MB / 420.6 MB, free: 5.77 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches