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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001629/0.001629, allocations: 182.6 kB / 18.04 MB, free: 3.785 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.306/1.306, allocations: 205.4 MB / 224.2 MB, free: 9.051 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007786/0.0007788, allocations: 94.34 kB / 272.5 MB, free: 8.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003098/0.0003098, allocations: 8 kB / 329.4 MB, free: 15.31 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1997/0.2, allocations: 47.57 MB / 377 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08146/0.2816, allocations: 75.21 MB / 452.2 MB, free: 5.379 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000194/0.2818, allocations: 63.97 kB / 452.3 MB, free: 5.316 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007233/0.289, allocations: 2.845 MB / 455.1 MB, free: 2.445 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2891, allocations: 0 / 455.1 MB, free: 2.445 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.362e-05/0.2891, allocations: 4 kB / 455.1 MB, free: 2.441 MB / 330.7 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.0005753/0.2897, allocations: 444.8 kB / 455.6 MB, free: 1.961 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.2898, allocations: 8.031 kB / 455.6 MB, free: 1.953 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.29e-05/0.2898, allocations: 28.66 kB / 455.6 MB, free: 1.926 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002313/0.2901, allocations: 232 kB / 455.8 MB, free: 1.66 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.324e-05/0.2901, allocations: 20.94 kB / 455.8 MB, free: 1.637 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.584e-05/0.2902, allocations: 24.38 kB / 455.9 MB, free: 1.613 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003858/0.2906, allocations: 236 kB / 456.1 MB, free: 1.371 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.2906, allocations: 4.172 kB / 456.1 MB, free: 1.367 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.931e-05/0.2906, allocations: 15.94 kB / 456.1 MB, free: 1.352 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.2906, allocations: 4 kB / 456.1 MB, free: 1.348 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000271/0.2909, allocations: 161.6 kB / 456.3 MB, free: 1.191 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000885/0.2918, allocations: 0.682 MB / 457 MB, free: 464 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000268/0.2921, allocations: 169.3 kB / 457.1 MB, free: 288 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.2922, allocations: 84.77 kB / 457.2 MB, free: 200 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.2922, allocations: 7.984 kB / 457.2 MB, free: 192 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001863/0.2924, allocations: 127.3 kB / 457.3 MB, free: 52 kB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.853e-06/0.2924, allocations: 0 / 457.3 MB, free: 52 kB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.000462/0.2929, allocations: 221.9 kB / 457.6 MB, free: 15.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/0.293, allocations: 55.41 kB / 457.6 MB, free: 15.76 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.2931, allocations: 141.9 kB / 457.7 MB, free: 15.61 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.09e-05/0.2931, allocations: 41.7 kB / 457.8 MB, free: 15.56 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.922e-05/0.2932, allocations: 132.4 kB / 457.9 MB, free: 15.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.145e-05/0.2933, allocations: 59.25 kB / 458 MB, free: 15.38 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.06e-05/0.2933, allocations: 4 kB / 458 MB, free: 15.37 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.2934, allocations: 330.8 kB / 458.3 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.2935, allocations: 60.62 kB / 458.4 MB, free: 14.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.2937, allocations: 128 kB / 458.5 MB, free: 14.83 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002342/0.2939, allocations: 183.6 kB / 458.7 MB, free: 14.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2939, allocations: 0 / 458.7 MB, free: 14.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003406/0.2943, allocations: 245.2 kB / 458.9 MB, free: 14.38 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.2943, allocations: 8.922 kB / 458.9 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.2943, allocations: 4 kB / 458.9 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.2944, allocations: 4 kB / 458.9 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.2945, allocations: 27.92 kB / 458.9 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.986e-06/0.2945, allocations: 4 kB / 459 MB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.975e-05/0.2946, allocations: 15.94 kB / 459 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.168e-05/0.2946, allocations: 20.2 kB / 459 MB, free: 14.3 MB / 346.7 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,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001284/0.2948, allocations: 153.7 kB / 459.1 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.184e-05/0.2948, allocations: 15.75 kB / 459.2 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003363/0.2952, allocations: 200.8 kB / 459.3 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.2952, allocations: 4 kB / 459.4 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.2952, allocations: 0 / 459.4 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.2952, allocations: 0 / 459.4 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006693/0.2959, allocations: 0.5686 MB / 459.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.2959, allocations: 0 / 459.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.554e-05/0.296, allocations: 19.92 kB / 459.9 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.296, allocations: 4 kB / 459.9 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.296, allocations: 4 kB / 459.9 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.296, allocations: 0 / 459.9 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.296, allocations: 7.938 kB / 460 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000277/0.2963, allocations: 275.2 kB / 460.2 MB, free: 12.97 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.458e-05/0.2963, allocations: 88.95 kB / 460.3 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.332e-05/0.2964, allocations: 4 kB / 460.3 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.973e-05/0.2965, allocations: 15.97 kB / 460.3 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.058e-05/0.2965, allocations: 27.91 kB / 460.4 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.2966, allocations: 11.98 kB / 460.4 MB, free: 12.81 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.163e-05/0.2966, allocations: 99.2 kB / 460.5 MB, free: 12.71 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2966, allocations: 4 kB / 460.5 MB, free: 12.71 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002753/0.2969, allocations: 43.91 kB / 460.5 MB, free: 12.66 MB / 346.7 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.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,step.active,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001538/0.2971, allocations: 107.2 kB / 460.6 MB, free: 12.55 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002872/0.2974, allocations: 180 kB / 460.8 MB, free: 12.38 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.2974, allocations: 0 / 460.8 MB, free: 12.38 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.2975, allocations: 87.84 kB / 460.9 MB, free: 12.29 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002807/0.2978, allocations: 24.05 kB / 460.9 MB, free: 12.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005943/0.2984, allocations: 387.6 kB / 461.3 MB, free: 11.86 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.2987, allocations: 0.7324 MB / 462 MB, free: 11.1 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.544e-05/0.2988, allocations: 25.94 kB / 462 MB, free: 11.08 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.938e-05/0.2988, allocations: 23.44 kB / 462.1 MB, free: 11.06 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2988, allocations: 0 / 462.1 MB, free: 11.06 MB / 346.7 MB Notification: Performance of Templates: time 0.004525/0.3034, allocations: 1.674 MB / 463.7 MB, free: 9.395 MB / 346.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches