Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001439/0.001439, allocations: 105.2 kB / 17.73 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001779/0.001779, allocations: 187.1 kB / 18.66 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.526/1.526, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 48.22 kB / 328.5 MB, free: 3.344 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1196, allocations: 46.62 MB / 375.1 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002743/0.1224, allocations: 1.473 MB / 376.6 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007093/0.1231, allocations: 251.3 kB / 376.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.1233, allocations: 4 kB / 376.8 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001558/0.1234, allocations: 23.69 kB / 376.9 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.35e-05/0.1235, allocations: 15.8 kB / 376.9 MB, free: 2.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004471/0.124, allocations: 115.8 kB / 377 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003162/0.1243, allocations: 263.5 kB / 377.2 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003104/0.1246, allocations: 166.3 kB / 377.4 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001126/0.1247, allocations: 83.72 kB / 377.5 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001641/0.1249, allocations: 95.59 kB / 377.6 MB, free: 2.129 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.2e-05/0.1249, allocations: 24 kB / 377.6 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.205e-05/0.125, allocations: 31.98 kB / 377.6 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.003e-05/0.1251, allocations: 55.84 kB / 377.7 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.1252, allocations: 99.45 kB / 377.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002878/0.1255, allocations: 235.2 kB / 378 MB, free: 1.691 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.528e-06/0.1255, allocations: 3.984 kB / 378 MB, free: 1.688 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.1255, allocations: 0 / 378 MB, free: 1.688 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.1256, allocations: 0 / 378 MB, free: 1.688 MB / 318.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.0008074/0.1264, allocations: 486.5 kB / 378.5 MB, free: 1.164 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.1264, allocations: 8.031 kB / 378.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.608e-05/0.1265, allocations: 28.66 kB / 378.5 MB, free: 1.129 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003055/0.1268, allocations: 228 kB / 378.8 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.346e-05/0.1269, allocations: 24.94 kB / 378.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.984e-05/0.1269, allocations: 24.38 kB / 378.8 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004335/0.1273, allocations: 248 kB / 379 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.1274, allocations: 4.172 kB / 379.1 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/0.1274, allocations: 11.94 kB / 379.1 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.1274, allocations: 8 kB / 379.1 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002886/0.1277, allocations: 157.7 kB / 379.2 MB, free: 396 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.26/0.3877, allocations: 0.6902 MB / 379.9 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000325/0.3881, allocations: 168.8 kB / 380.1 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001329/0.3882, allocations: 78.8 kB / 380.2 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.142e-05/0.3882, allocations: 5.125 kB / 380.2 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002286/0.3885, allocations: 131.8 kB / 380.3 MB, free: 12.55 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 3.387e-06/0.3885, allocations: 0 / 380.3 MB, free: 12.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004945/0.389, allocations: 220.2 kB / 380.5 MB, free: 12.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/0.3891, allocations: 57.44 kB / 380.6 MB, free: 12.45 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.3892, allocations: 143.8 kB / 380.7 MB, free: 12.35 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.3892, allocations: 35.95 kB / 380.7 MB, free: 12.32 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.746e-05/0.3893, allocations: 128.2 kB / 380.9 MB, free: 12.22 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.956e-05/0.3893, allocations: 65.64 kB / 380.9 MB, free: 12.19 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.3895, allocations: 77.88 kB / 381 MB, free: 12.17 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.694e-05/0.3896, allocations: 325.2 kB / 381.3 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.3897, allocations: 63.41 kB / 381.4 MB, free: 11.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001659/0.3899, allocations: 132.3 kB / 381.5 MB, free: 11.79 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002309/0.3901, allocations: 172.2 kB / 381.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3901, allocations: 3.438 kB / 381.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003691/0.3905, allocations: 241.1 kB / 381.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.3905, allocations: 5.5 kB / 381.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.3905, allocations: 6.656 kB / 381.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.581e-05/0.3906, allocations: 3.531 kB / 381.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/0.3907, allocations: 29.45 kB / 382 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.544e-05/0.3908, allocations: 11.89 kB / 382 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.3909, allocations: 28.11 kB / 382 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.643e-05/0.3909, allocations: 13.42 kB / 382 MB, free: 11.67 MB / 318.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.0001508/0.3911, allocations: 158.2 kB / 382.2 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.554e-05/0.3911, allocations: 14.41 kB / 382.2 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003756/0.3915, allocations: 200.4 kB / 382.4 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.453e-06/0.3915, allocations: 2.75 kB / 382.4 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3915, allocations: 7.875 kB / 382.4 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.3915, allocations: 3.297 kB / 382.4 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00075/0.3923, allocations: 0.5605 MB / 383 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3923, allocations: 0.875 kB / 383 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.031e-05/0.3924, allocations: 15.77 kB / 383 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.3924, allocations: 1.031 kB / 383 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.3924, allocations: 9.906 kB / 383 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.3924, allocations: 2 kB / 383 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.3925, allocations: 2.938 kB / 383 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003031/0.3928, allocations: 280.9 kB / 383.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.892e-05/0.3928, allocations: 94.16 kB / 383.3 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.636e-05/0.3928, allocations: 6.859 kB / 383.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.647e-05/0.3929, allocations: 13.53 kB / 383.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.813e-05/0.393, allocations: 18.33 kB / 383.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.393, allocations: 9.656 kB / 383.4 MB, free: 10.78 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.423e-05/0.3931, allocations: 97.67 kB / 383.5 MB, free: 10.7 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3931, allocations: 0 / 383.5 MB, free: 10.7 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002966/0.3934, allocations: 51.73 kB / 383.5 MB, free: 10.68 MB / 318.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: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 22 * 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.0001346/0.3935, allocations: 119.4 kB / 383.7 MB, free: 10.58 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003339/0.3939, allocations: 183.8 kB / 383.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.3939, allocations: 1.094 kB / 383.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.394, allocations: 83.31 kB / 383.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002836/0.3943, allocations: 22.45 kB / 383.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005906/0.3949, allocations: 332.8 kB / 384.3 MB, free: 10.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000184/0.3951, allocations: 0.7353 MB / 385 MB, free: 9.574 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.879e-05/0.3952, allocations: 25.7 kB / 385 MB, free: 9.57 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.501e-05/0.3953, allocations: 27.33 kB / 385.1 MB, free: 9.559 MB / 318.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3953, allocations: 0 / 385.1 MB, free: 9.559 MB / 318.1 MB Notification: Performance of Templates: time 0.005436/0.4007, allocations: 1.898 MB / 387 MB, free: 9.43 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches