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.0008633/0.0008633, allocations: 97.05 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009528/0.000953, allocations: 202.6 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002306/0.0002303, allocations: 4 kB / 308.4 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08906/0.08931, allocations: 51.52 MB / 359.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001616/0.09096, allocations: 1.237 MB / 361.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007008/0.09169, allocations: 295.1 kB / 361.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.09183, allocations: 4 kB / 361.4 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001175/0.09196, allocations: 19.86 kB / 361.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.446e-05/0.09204, allocations: 11.92 kB / 361.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003984/0.09244, allocations: 99.84 kB / 361.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000323/0.09278, allocations: 239.5 kB / 361.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002843/0.09307, allocations: 150.2 kB / 361.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.952e-05/0.09317, allocations: 59.78 kB / 362 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.09331, allocations: 79.55 kB / 362.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.893e-05/0.09335, allocations: 12 kB / 362.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.135e-05/0.09342, allocations: 12 kB / 362.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.52e-05/0.09349, allocations: 43.88 kB / 362.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.0936, allocations: 109.1 kB / 362.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002034/0.09381, allocations: 151.7 kB / 362.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.09382, allocations: 0 / 362.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.09384, allocations: 4 kB / 362.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.475e-06/0.09385, allocations: 0 / 362.4 MB, free: 10.8 MB / 302.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.0006656/0.09452, allocations: 435 kB / 362.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.09457, allocations: 8.031 kB / 362.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000216/0.09479, allocations: 36.64 kB / 362.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002183/0.09502, allocations: 220.1 kB / 363.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.165e-05/0.09507, allocations: 32.92 kB / 363.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.441e-05/0.09511, allocations: 24.38 kB / 363.1 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003968/0.09552, allocations: 236 kB / 363.4 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.09553, allocations: 192 / 363.4 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.09557, allocations: 19.92 kB / 363.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.054e-06/0.09558, allocations: 7.938 kB / 363.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002908/0.09588, allocations: 157.7 kB / 363.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009383/0.09682, allocations: 0.6934 MB / 364.2 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002916/0.09713, allocations: 170.8 kB / 364.4 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.09726, allocations: 81.58 kB / 364.5 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.09729, allocations: 3.984 kB / 364.5 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002084/0.0975, allocations: 126.7 kB / 364.6 MB, free: 8.402 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.844e-06/0.09751, allocations: 0 / 364.6 MB, free: 8.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004016/0.09792, allocations: 213.2 kB / 364.8 MB, free: 8.188 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.09797, allocations: 63.41 kB / 364.9 MB, free: 8.113 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.09809, allocations: 153.2 kB / 365 MB, free: 7.957 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/0.09813, allocations: 33.7 kB / 365.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.517e-05/0.09822, allocations: 132.7 kB / 365.2 MB, free: 7.785 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.621e-05/0.09827, allocations: 55.2 kB / 365.3 MB, free: 7.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.137e-05/0.09834, allocations: 49.69 kB / 365.3 MB, free: 7.676 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.09845, allocations: 326.8 kB / 365.6 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001379/0.0986, allocations: 60.62 kB / 365.7 MB, free: 7.285 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.09876, allocations: 136 kB / 365.8 MB, free: 7.129 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002365/0.09901, allocations: 175.2 kB / 366 MB, free: 6.934 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.09902, allocations: 4 kB / 366 MB, free: 6.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000354/0.09938, allocations: 233.2 kB / 366.2 MB, free: 6.695 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.0994, allocations: 4.219 kB / 366.2 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.09942, allocations: 8 kB / 366.2 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.09944, allocations: 4 kB / 366.2 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.09957, allocations: 27.92 kB / 366.3 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.0996, allocations: 7.938 kB / 366.3 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.09971, allocations: 27.75 kB / 366.3 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.09974, allocations: 12 kB / 366.3 MB, free: 6.605 MB / 302.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.0001414/0.09988, allocations: 153.7 kB / 366.5 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.582e-05/0.09992, allocations: 27.69 kB / 366.5 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.047e-05/0.09997, allocations: 16.84 kB / 366.5 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.09998, allocations: 4 kB / 366.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.1, allocations: 7.984 kB / 366.5 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.1, allocations: 0 / 366.5 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006856/0.1007, allocations: 0.5488 MB / 367.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.165e-06/0.1007, allocations: 4 kB / 367.1 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.432e-05/0.1008, allocations: 15.94 kB / 367.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.1008, allocations: 7.984 kB / 367.1 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.1008, allocations: 4 kB / 367.1 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1008, allocations: 0 / 367.1 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1008, allocations: 3.938 kB / 367.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000289/0.1011, allocations: 266.4 kB / 367.4 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.744e-05/0.1012, allocations: 85.02 kB / 367.4 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.655e-05/0.1012, allocations: 11.98 kB / 367.4 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.09e-05/0.1013, allocations: 15.94 kB / 367.5 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.842e-05/0.1014, allocations: 27.89 kB / 367.5 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.1014, allocations: 8 kB / 367.5 MB, free: 5.309 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.832e-05/0.1015, allocations: 91.27 kB / 367.6 MB, free: 5.219 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1015, allocations: 0 / 367.6 MB, free: 5.219 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002889/0.1018, allocations: 47.84 kB / 367.6 MB, free: 5.172 MB / 302.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.localActive,transition1.enableFire,initialStep.localActive,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,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.0001136/0.1019, allocations: 111.2 kB / 367.7 MB, free: 5.051 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003181/0.1022, allocations: 171.7 kB / 367.9 MB, free: 4.883 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1022, allocations: 0 / 367.9 MB, free: 4.883 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.1024, allocations: 79.91 kB / 368 MB, free: 4.805 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000293/0.1027, allocations: 19.98 kB / 368 MB, free: 4.785 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000597/0.1033, allocations: 410.2 kB / 368.4 MB, free: 4.355 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002715/0.1036, allocations: 0.7326 MB / 369.1 MB, free: 3.598 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.723e-05/0.1036, allocations: 23.38 kB / 369.2 MB, free: 3.574 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1037, allocations: 0 / 369.2 MB, free: 3.574 MB / 302.1 MB Notification: Performance of Templates: time 0.004037/0.1077, allocations: 2.131 MB / 371.3 MB, free: 1.449 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches