Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001216/0.001216, allocations: 196.7 kB / 18.1 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 226.5 MB / 245.4 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007703/0.0007704, allocations: 102.8 kB / 297.5 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002364/0.0002367, allocations: 4 kB / 358.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2255, allocations: 51.3 MB / 409.4 MB, free: 27.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0958/0.3213, allocations: 78.41 MB / 487.8 MB, free: 13.14 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.3216, allocations: 67.97 kB / 487.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008384/0.33, allocations: 2.841 MB / 490.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.33, allocations: 0 / 490.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.793e-05/0.3301, allocations: 11.94 kB / 490.7 MB, free: 10.22 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0006933/0.3308, allocations: 0.4884 MB / 491.2 MB, free: 9.668 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.3308, allocations: 8.031 kB / 491.2 MB, free: 9.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.331, allocations: 36.66 kB / 491.2 MB, free: 9.625 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002448/0.3312, allocations: 243.7 kB / 491.5 MB, free: 9.348 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/0.3312, allocations: 12.66 kB / 491.5 MB, free: 9.336 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/0.3313, allocations: 12.38 kB / 491.5 MB, free: 9.324 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003346/0.3316, allocations: 196.3 kB / 491.7 MB, free: 9.117 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.3316, allocations: 4.188 kB / 491.7 MB, free: 9.113 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/0.3317, allocations: 11.94 kB / 491.7 MB, free: 9.102 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/0.3317, allocations: 4 kB / 491.7 MB, free: 9.098 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002892/0.332, allocations: 143.8 kB / 491.8 MB, free: 8.957 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.333, allocations: 0.7858 MB / 492.6 MB, free: 8.109 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002952/0.3333, allocations: 165 kB / 492.8 MB, free: 7.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001441/0.3335, allocations: 81.73 kB / 492.9 MB, free: 7.844 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.54e-05/0.3335, allocations: 4 kB / 492.9 MB, free: 7.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002663/0.3338, allocations: 148.9 kB / 493 MB, free: 7.676 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.3338, allocations: 3.938 kB / 493 MB, free: 7.672 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005371/0.3344, allocations: 261.5 kB / 493.3 MB, free: 7.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.3344, allocations: 77.11 kB / 493.4 MB, free: 7.316 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.3346, allocations: 202.9 kB / 493.6 MB, free: 7.109 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.603e-05/0.3346, allocations: 33.7 kB / 493.6 MB, free: 7.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.92e-05/0.3347, allocations: 136.2 kB / 493.7 MB, free: 6.934 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.391e-05/0.3348, allocations: 43.44 kB / 493.8 MB, free: 6.891 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.297e-06/0.3348, allocations: 4 kB / 493.8 MB, free: 6.887 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.3349, allocations: 334.8 kB / 494.1 MB, free: 6.551 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.335, allocations: 67.95 kB / 494.2 MB, free: 6.484 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001728/0.3352, allocations: 131.1 kB / 494.3 MB, free: 6.336 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003111/0.3355, allocations: 202.7 kB / 494.5 MB, free: 6.113 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3356, allocations: 0 / 494.5 MB, free: 6.113 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004105/0.336, allocations: 253.2 kB / 494.7 MB, free: 5.859 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.336, allocations: 4 kB / 494.7 MB, free: 5.855 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.336, allocations: 11.92 kB / 494.7 MB, free: 5.844 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.336, allocations: 4 kB / 494.7 MB, free: 5.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000164/0.3362, allocations: 27.98 kB / 494.8 MB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.3362, allocations: 7.938 kB / 494.8 MB, free: 5.805 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001576/0.3364, allocations: 47.92 kB / 494.8 MB, free: 5.758 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.655e-05/0.3364, allocations: 4 kB / 494.8 MB, free: 5.754 MB / 362.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: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.000118/0.3365, allocations: 141.8 kB / 495 MB, free: 5.605 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.445e-05/0.3366, allocations: 15.81 kB / 495 MB, free: 5.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004284/0.337, allocations: 218.9 kB / 495.2 MB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.337, allocations: 0 / 495.2 MB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.337, allocations: 0 / 495.2 MB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.337, allocations: 96 / 495.2 MB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002776/0.3373, allocations: 281.2 kB / 495.5 MB, free: 5.047 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3373, allocations: 8 kB / 495.5 MB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.3375, allocations: 23.92 kB / 495.5 MB, free: 5.016 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.3375, allocations: 0 / 495.5 MB, free: 5.016 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.3375, allocations: 8 kB / 495.5 MB, free: 5.008 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3375, allocations: 4 kB / 495.5 MB, free: 5.004 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3375, allocations: 0 / 495.5 MB, free: 5.004 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004515/0.338, allocations: 229.6 kB / 495.7 MB, free: 4.758 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.716e-05/0.3381, allocations: 96.86 kB / 495.8 MB, free: 4.645 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.784e-05/0.3381, allocations: 3.984 kB / 495.8 MB, free: 4.641 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.3382, allocations: 23.98 kB / 495.9 MB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.032e-05/0.3383, allocations: 15.97 kB / 495.9 MB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.517e-05/0.3383, allocations: 4 kB / 495.9 MB, free: 4.598 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001336/0.3385, allocations: 148.4 kB / 496 MB, free: 4.453 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3385, allocations: 0 / 496 MB, free: 4.453 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002767/0.3388, allocations: 47.89 kB / 496.1 MB, free: 4.406 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001527/0.3389, allocations: 101.7 kB / 496.2 MB, free: 4.301 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003828/0.3393, allocations: 172.1 kB / 496.3 MB, free: 4.133 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.3393, allocations: 8.062 kB / 496.4 MB, free: 4.125 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001588/0.3395, allocations: 83.88 kB / 496.4 MB, free: 4.043 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003322/0.3398, allocations: 45.16 kB / 496.5 MB, free: 4 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00064/0.3405, allocations: 426.9 kB / 496.9 MB, free: 3.559 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000292/0.3408, allocations: 0.7319 MB / 497.6 MB, free: 2.801 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001266/0.3409, allocations: 41.5 kB / 497.7 MB, free: 2.758 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.541e-05/0.341, allocations: 19.44 kB / 497.7 MB, free: 2.738 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.341, allocations: 0 / 497.7 MB, free: 2.738 MB / 362.7 MB Notification: Performance of Templates: time 0.004595/0.3456, allocations: 1.849 MB / 499.5 MB, free: 0.918 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches