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.001701/0.001701, allocations: 113.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002469/0.002469, allocations: 212.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.384/2.384, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002396/0.002396, allocations: 59.89 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4116/0.414, allocations: 50.53 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.009743/0.4238, allocations: 1.893 MB / 411.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002427/0.4263, allocations: 0.6466 MB / 412.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002368/0.4266, allocations: 4 kB / 412.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002391/0.4268, allocations: 27.67 kB / 412.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002851/0.4272, allocations: 31.66 kB / 412.5 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005151/0.4278, allocations: 79.78 kB / 412.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004143/0.4282, allocations: 167.4 kB / 412.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003047/0.4285, allocations: 76.23 kB / 412.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003058/0.4289, allocations: 75.66 kB / 412.9 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002656/0.4291, allocations: 83.61 kB / 413 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.491e-05/0.4292, allocations: 12 kB / 413 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001517/0.4294, allocations: 23.98 kB / 413 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001375/0.4295, allocations: 39.84 kB / 413.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001597/0.4297, allocations: 87.45 kB / 413.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004737/0.4302, allocations: 198.9 kB / 413.3 MB, free: 14.17 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.4302, allocations: 0 / 413.3 MB, free: 14.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4303, allocations: 0 / 413.3 MB, free: 14.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.4303, allocations: 0 / 413.3 MB, free: 14.17 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.001568/0.4319, allocations: 0.5042 MB / 413.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/0.4319, allocations: 12.03 kB / 413.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002644/0.4322, allocations: 32.64 kB / 413.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004736/0.4327, allocations: 239.8 kB / 414.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.179e-05/0.4327, allocations: 12.66 kB / 414.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.15e-05/0.4328, allocations: 20.38 kB / 414.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006182/0.4334, allocations: 196.1 kB / 414.3 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.4335, allocations: 4 kB / 414.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.005e-05/0.4335, allocations: 4 kB / 414.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.59e-05/0.4336, allocations: 8 kB / 414.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005971/0.4342, allocations: 151.8 kB / 414.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006386/0.4406, allocations: 0.7701 MB / 415.3 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005659/0.4412, allocations: 165 kB / 415.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002957/0.4415, allocations: 73.75 kB / 415.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.939e-05/0.4416, allocations: 11.92 kB / 415.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004536/0.4421, allocations: 149.2 kB / 415.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 3.517e-06/0.4421, allocations: 0 / 415.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001104/0.4433, allocations: 257.2 kB / 415.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.926e-05/0.4434, allocations: 81.11 kB / 416 MB, free: 11.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004714/0.4439, allocations: 211.1 kB / 416.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.525e-05/0.4439, allocations: 33.7 kB / 416.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/0.4441, allocations: 144.1 kB / 416.4 MB, free: 10.87 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.142e-05/0.4442, allocations: 39.45 kB / 416.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001362/0.4443, allocations: 45.7 kB / 416.5 MB, free: 10.78 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002016/0.4445, allocations: 330.8 kB / 416.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002937/0.4448, allocations: 67.95 kB / 416.9 MB, free: 10.38 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003569/0.4452, allocations: 129.8 kB / 417 MB, free: 10.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006274/0.4459, allocations: 206.6 kB / 417.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.4459, allocations: 0 / 417.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000967/0.4469, allocations: 249.2 kB / 417.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.792e-05/0.4469, allocations: 4 kB / 417.4 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.447, allocations: 4 kB / 417.4 MB, free: 9.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.318e-05/0.447, allocations: 4 kB / 417.4 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000298/0.4473, allocations: 39.91 kB / 417.5 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.4474, allocations: 4 kB / 417.5 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002982/0.4477, allocations: 23.83 kB / 417.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.46e-05/0.4477, allocations: 8 kB / 417.5 MB, free: 9.672 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.0002669/0.448, allocations: 157.7 kB / 417.7 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.251e-05/0.4481, allocations: 15.81 kB / 417.7 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008042/0.4489, allocations: 215 kB / 417.9 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.4489, allocations: 8.047 kB / 417.9 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.449, allocations: 3.938 kB / 417.9 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.449, allocations: 3.984 kB / 417.9 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005107/0.4495, allocations: 273.3 kB / 418.2 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.4495, allocations: 0 / 418.2 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002195/0.4498, allocations: 23.98 kB / 418.2 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.762e-06/0.4498, allocations: 0 / 418.2 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.82e-05/0.4498, allocations: 8 kB / 418.2 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.4498, allocations: 0 / 418.2 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-06/0.4499, allocations: 3.984 kB / 418.2 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007495/0.4506, allocations: 230.4 kB / 418.4 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.425e-05/0.4507, allocations: 92.92 kB / 418.5 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.94e-05/0.4508, allocations: 4 kB / 418.5 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002242/0.451, allocations: 15.98 kB / 418.5 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.816e-05/0.4511, allocations: 15.97 kB / 418.6 MB, free: 8.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.674e-05/0.4511, allocations: 4 kB / 418.6 MB, free: 8.516 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002391/0.4514, allocations: 144.7 kB / 418.7 MB, free: 8.375 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4514, allocations: 0 / 418.7 MB, free: 8.375 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004905/0.4519, allocations: 47.83 kB / 418.7 MB, free: 8.328 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.0002367/0.4522, allocations: 109.6 kB / 418.9 MB, free: 8.211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007405/0.4529, allocations: 171.8 kB / 419 MB, free: 8.043 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.4529, allocations: 0 / 419 MB, free: 8.043 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000333/0.4533, allocations: 84.2 kB / 419.1 MB, free: 7.961 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005856/0.4539, allocations: 48.08 kB / 419.2 MB, free: 7.918 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005397/0.4593, allocations: 403 kB / 419.5 MB, free: 7.488 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005787/0.4599, allocations: 0.7358 MB / 420.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.4601, allocations: 27.61 kB / 420.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of SimCode: time 1.393e-06/0.4601, allocations: 0 / 420.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of Templates: time 0.009586/0.4697, allocations: 2.488 MB / 422.8 MB, free: 4.223 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/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_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches