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/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.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/ModelicaServices trunk/package.mo): time 0.001815/0.001815, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002158/0.002159, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0011/0.0011, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.332, allocations: 50.55 MB / 409.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.005839/0.3379, allocations: 1.885 MB / 411.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002071/0.34, allocations: 0.6388 MB / 411.8 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.3402, allocations: 4 kB / 411.8 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002139/0.3404, allocations: 27.67 kB / 411.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002406/0.3407, allocations: 43.66 kB / 411.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004924/0.3412, allocations: 75.8 kB / 411.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003898/0.3416, allocations: 167.4 kB / 412.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002859/0.3419, allocations: 76.25 kB / 412.2 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002676/0.3422, allocations: 75.64 kB / 412.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002503/0.3425, allocations: 75.62 kB / 412.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.895e-05/0.3425, allocations: 12 kB / 412.3 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000139/0.3427, allocations: 27.92 kB / 412.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.3428, allocations: 47.83 kB / 412.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.343, allocations: 87.47 kB / 412.5 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004277/0.3434, allocations: 194.9 kB / 412.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.3435, allocations: 7.938 kB / 412.7 MB, free: 14.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3435, allocations: 0 / 412.7 MB, free: 14.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.3435, allocations: 0 / 412.7 MB, free: 14.15 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001386/0.3449, allocations: 0.5002 MB / 413.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/0.345, allocations: 8.031 kB / 413.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002446/0.3452, allocations: 36.64 kB / 413.2 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004188/0.3457, allocations: 239.8 kB / 413.4 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.657e-05/0.3457, allocations: 12.66 kB / 413.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.513e-05/0.3458, allocations: 16.31 kB / 413.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000552/0.3464, allocations: 200.1 kB / 413.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.3464, allocations: 0 / 413.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.321e-05/0.3464, allocations: 8 kB / 413.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.915e-05/0.3465, allocations: 4 kB / 413.7 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005253/0.347, allocations: 143.8 kB / 413.8 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001767/0.3488, allocations: 0.7779 MB / 414.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005551/0.3494, allocations: 176.9 kB / 414.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002683/0.3497, allocations: 69.81 kB / 414.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.897e-05/0.3497, allocations: 4 kB / 414.8 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004048/0.3502, allocations: 141 kB / 415 MB, free: 11.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 2.274e-06/0.3502, allocations: 0 / 415 MB, free: 11.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009556/0.3511, allocations: 261.4 kB / 415.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.777e-05/0.3512, allocations: 81.11 kB / 415.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003272/0.3516, allocations: 211.1 kB / 415.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.457e-05/0.3516, allocations: 29.7 kB / 415.6 MB, free: 11.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001497/0.3518, allocations: 144.1 kB / 415.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.433e-05/0.3519, allocations: 43.39 kB / 415.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.352, allocations: 41.7 kB / 415.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.3522, allocations: 338.8 kB / 416.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002749/0.3525, allocations: 67.95 kB / 416.2 MB, free: 10.37 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003199/0.3528, allocations: 122.1 kB / 416.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005791/0.3534, allocations: 206.6 kB / 416.5 MB, free: 10 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.3535, allocations: 8 kB / 416.5 MB, free: 9.996 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007911/0.3543, allocations: 241.1 kB / 416.7 MB, free: 9.754 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/0.3543, allocations: 4 kB / 416.7 MB, free: 9.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.3543, allocations: 4.094 kB / 416.7 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.668e-05/0.3544, allocations: 3.938 kB / 416.8 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002824/0.3547, allocations: 31.92 kB / 416.8 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.746e-05/0.3547, allocations: 12.17 kB / 416.8 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002778/0.355, allocations: 27.83 kB / 416.8 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.139e-05/0.355, allocations: 12 kB / 416.8 MB, free: 9.66 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: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002229/0.3553, allocations: 149.6 kB / 417 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.273e-05/0.3553, allocations: 15.92 kB / 417 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007516/0.3561, allocations: 219.5 kB / 417.2 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3561, allocations: 4 kB / 417.2 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.3562, allocations: 4 kB / 417.2 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.3562, allocations: 0 / 417.2 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004391/0.3566, allocations: 281.3 kB / 417.5 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.3566, allocations: 4 kB / 417.5 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001897/0.3568, allocations: 15.98 kB / 417.5 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.3569, allocations: 4 kB / 417.5 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.3569, allocations: 0 / 417.5 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.3569, allocations: 0 / 417.5 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.3569, allocations: 7.938 kB / 417.5 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006471/0.3576, allocations: 233.7 kB / 417.8 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.3577, allocations: 92.91 kB / 417.8 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.948e-05/0.3578, allocations: 8 kB / 417.8 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.358, allocations: 11.98 kB / 417.9 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.572e-05/0.3581, allocations: 23.97 kB / 417.9 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.082e-05/0.3581, allocations: 4 kB / 417.9 MB, free: 8.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002157/0.3584, allocations: 144.7 kB / 418 MB, free: 8.359 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3584, allocations: 0 / 418 MB, free: 8.359 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004807/0.3589, allocations: 39.84 kB / 418.1 MB, free: 8.32 MB / 334.1 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 (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.0002099/0.3591, allocations: 109.6 kB / 418.2 MB, free: 8.203 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006744/0.3598, allocations: 175.4 kB / 418.3 MB, free: 8.035 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3598, allocations: 0 / 418.3 MB, free: 8.035 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000301/0.3601, allocations: 87.89 kB / 418.4 MB, free: 7.949 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005054/0.3607, allocations: 44.03 kB / 418.5 MB, free: 7.906 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.3617, allocations: 369.4 kB / 418.8 MB, free: 7.516 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004721/0.3622, allocations: 0.74 MB / 419.6 MB, free: 6.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001861/0.3624, allocations: 33.52 kB / 419.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.037e-05/0.3625, allocations: 19.44 kB / 419.6 MB, free: 6.699 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3625, allocations: 0 / 419.6 MB, free: 6.699 MB / 334.1 MB Notification: Performance of Templates: time 0.00848/0.371, allocations: 2.132 MB / 421.8 MB, free: 4.586 MB / 334.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches