Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008798/0.0008798, allocations: 94.25 kB / 17.31 MB, free: 6.535 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.000951/0.000951, allocations: 175.2 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.232/1.232, allocations: 223.3 MB / 242.2 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002169/0.0002169, allocations: 10.03 kB / 302.1 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07335/0.07358, allocations: 50.42 MB / 352.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001754/0.07535, allocations: 1.562 MB / 354 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009054/0.07627, allocations: 0.5688 MB / 354.6 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.038e-05/0.07636, allocations: 3.938 kB / 354.6 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.941e-05/0.07646, allocations: 15.86 kB / 354.6 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001235/0.07659, allocations: 35.72 kB / 354.7 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002071/0.07681, allocations: 51.95 kB / 354.7 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001846/0.077, allocations: 167.2 kB / 354.9 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.07716, allocations: 61.64 kB / 354.9 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.07726, allocations: 55.72 kB / 355 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001222/0.0774, allocations: 67.56 kB / 355.1 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.244e-05/0.07743, allocations: 4 kB / 355.1 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.557e-05/0.07749, allocations: 12 kB / 355.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.755e-05/0.07756, allocations: 35.84 kB / 355.1 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.13e-05/0.07765, allocations: 93.17 kB / 355.2 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000138/0.07779, allocations: 112 kB / 355.3 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.0778, allocations: 8 kB / 355.3 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.07781, allocations: 0 / 355.3 MB, free: 0.832 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.07782, allocations: 0 / 355.3 MB, free: 0.832 MB / 286.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.0007428/0.07857, allocations: 499 kB / 355.8 MB, free: 300 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.036e-05/0.07861, allocations: 12.03 kB / 355.8 MB, free: 288 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.829e-05/0.07866, allocations: 20.66 kB / 355.8 MB, free: 268 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002362/0.0789, allocations: 231.8 kB / 356.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.07893, allocations: 12.66 kB / 356.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.959e-05/0.07897, allocations: 20.11 kB / 356.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003527/0.07933, allocations: 211.6 kB / 356.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.415e-06/0.07934, allocations: 0 / 356.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.07937, allocations: 8 kB / 356.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.921e-05/0.07939, allocations: 7.984 kB / 356.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003107/0.07971, allocations: 155.8 kB / 356.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.08075, allocations: 0.7818 MB / 357.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003052/0.08107, allocations: 169 kB / 357.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000155/0.08123, allocations: 81.8 kB / 357.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.835e-05/0.08127, allocations: 4 kB / 357.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002461/0.08153, allocations: 156.3 kB / 357.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.313e-06/0.08154, allocations: 0 / 357.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005633/0.08211, allocations: 269.5 kB / 357.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/0.08216, allocations: 81.11 kB / 358 MB, free: 13.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001743/0.08234, allocations: 202.9 kB / 358.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.192e-05/0.08237, allocations: 29.7 kB / 358.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.841e-05/0.08246, allocations: 140.2 kB / 358.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.958e-05/0.08251, allocations: 47.34 kB / 358.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.895e-05/0.08255, allocations: 29.7 kB / 358.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.08267, allocations: 334.8 kB / 358.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001558/0.08283, allocations: 75.89 kB / 358.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001896/0.08303, allocations: 130.8 kB / 359 MB, free: 12.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003321/0.08337, allocations: 210.7 kB / 359.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.08338, allocations: 0 / 359.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004294/0.08382, allocations: 249.9 kB / 359.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.08384, allocations: 4 kB / 359.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.08385, allocations: 4 kB / 359.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.08387, allocations: 4.109 kB / 359.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.08404, allocations: 35.86 kB / 359.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.08405, allocations: 4 kB / 359.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.08423, allocations: 43.91 kB / 359.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.08425, allocations: 8 kB / 359.5 MB, free: 12.31 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: 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.0001248/0.08438, allocations: 153.6 kB / 359.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.683e-05/0.08441, allocations: 15.81 kB / 359.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004374/0.08486, allocations: 223 kB / 359.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.08487, allocations: 4 kB / 359.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.08488, allocations: 4 kB / 359.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.08489, allocations: 0 / 359.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002452/0.08514, allocations: 273.4 kB / 360.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.08515, allocations: 4 kB / 360.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.08527, allocations: 23.92 kB / 360.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.08529, allocations: 4 kB / 360.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.0853, allocations: 4 kB / 360.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.08531, allocations: 0 / 360.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.08531, allocations: 0 / 360.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003842/0.0857, allocations: 237.6 kB / 360.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.516e-05/0.08577, allocations: 100.9 kB / 360.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.427e-05/0.0858, allocations: 7.922 kB / 360.6 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.08595, allocations: 23.98 kB / 360.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.14e-05/0.08601, allocations: 15.97 kB / 360.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.08603, allocations: 8 kB / 360.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001132/0.08615, allocations: 144.6 kB / 360.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08615, allocations: 0 / 360.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002551/0.08641, allocations: 39.88 kB / 360.8 MB, free: 10.94 MB / 302.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.0001094/0.08653, allocations: 109.9 kB / 360.9 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003772/0.08691, allocations: 183.9 kB / 361.1 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.08693, allocations: 0 / 361.1 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000178/0.08711, allocations: 87.88 kB / 361.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003253/0.08745, allocations: 39.92 kB / 361.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000643/0.0881, allocations: 484.8 kB / 361.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002732/0.08839, allocations: 0.7319 MB / 362.4 MB, free: 9.262 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.764e-05/0.08845, allocations: 23.44 kB / 362.4 MB, free: 9.238 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.08846, allocations: 7.938 kB / 362.4 MB, free: 9.23 MB / 302.1 MB Notification: Performance of Templates: time 0.00386/0.09232, allocations: 2.37 MB / 364.8 MB, free: 6.871 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches