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.001331/0.001331, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001421/0.001421, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.4 MB / 246.9 MB, free: 9.035 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 59.69 kB / 306.9 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08647/0.08769, allocations: 50.54 MB / 357.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003303/0.09103, allocations: 1.937 MB / 359.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001217/0.09228, allocations: 0.6506 MB / 360 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.09241, allocations: 4 kB / 360 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001248/0.09255, allocations: 15.8 kB / 360 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001489/0.09274, allocations: 31.72 kB / 360.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002629/0.09301, allocations: 63.94 kB / 360.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002036/0.09322, allocations: 167.4 kB / 360.3 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.09339, allocations: 64.12 kB / 360.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001602/0.09355, allocations: 79.62 kB / 360.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001301/0.09369, allocations: 75.62 kB / 360.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.062e-05/0.09373, allocations: 8 kB / 360.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.267e-05/0.09382, allocations: 23.98 kB / 360.5 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.488e-05/0.0939, allocations: 39.83 kB / 360.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.631e-05/0.09399, allocations: 75.48 kB / 360.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001603/0.09415, allocations: 124 kB / 360.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.09416, allocations: 0 / 360.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.01e-07/0.09417, allocations: 0 / 360.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.09418, allocations: 4 kB / 360.8 MB, free: 10.92 MB / 302.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.0008437/0.09503, allocations: 0.5088 MB / 361.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.09507, allocations: 8.031 kB / 361.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001611/0.09524, allocations: 28.73 kB / 361.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002426/0.09549, allocations: 243.5 kB / 361.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.011e-05/0.09552, allocations: 16.66 kB / 361.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.942e-05/0.09556, allocations: 16.38 kB / 361.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003513/0.09591, allocations: 208 kB / 361.8 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.09593, allocations: 0 / 361.8 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.794e-05/0.09595, allocations: 4 kB / 361.8 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3e-05/0.09599, allocations: 8 kB / 361.8 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002998/0.0963, allocations: 147.8 kB / 361.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.09734, allocations: 0.7662 MB / 362.7 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000303/0.09766, allocations: 172.9 kB / 362.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.09781, allocations: 77.81 kB / 363 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.437e-05/0.09786, allocations: 4.141 kB / 363 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002477/0.09811, allocations: 151 kB / 363.1 MB, free: 8.379 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.09812, allocations: 0 / 363.1 MB, free: 8.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005446/0.09867, allocations: 261.3 kB / 363.4 MB, free: 8.117 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/0.09873, allocations: 81.11 kB / 363.4 MB, free: 8.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001834/0.09892, allocations: 207 kB / 363.6 MB, free: 7.809 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.09895, allocations: 33.7 kB / 363.7 MB, free: 7.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.986e-05/0.09905, allocations: 136.2 kB / 363.8 MB, free: 7.629 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.575e-05/0.09909, allocations: 39.45 kB / 363.8 MB, free: 7.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.846e-05/0.09916, allocations: 53.61 kB / 363.9 MB, free: 7.531 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.09929, allocations: 326.8 kB / 364.2 MB, free: 7.203 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/0.09944, allocations: 67.95 kB / 364.3 MB, free: 7.137 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001793/0.09963, allocations: 130.1 kB / 364.4 MB, free: 6.988 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003233/0.09996, allocations: 211.2 kB / 364.6 MB, free: 6.758 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.09997, allocations: 4 kB / 364.6 MB, free: 6.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004182/0.1004, allocations: 241.2 kB / 364.9 MB, free: 6.512 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.1004, allocations: 8 kB / 364.9 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.1004, allocations: 3.938 kB / 364.9 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.1005, allocations: 4 kB / 364.9 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.1006, allocations: 31.98 kB / 364.9 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.1006, allocations: 12.12 kB / 364.9 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.1008, allocations: 31.81 kB / 364.9 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.1008, allocations: 4 kB / 365 MB, free: 6.418 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.000136/0.101, allocations: 149.6 kB / 365.1 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.664e-05/0.101, allocations: 15.91 kB / 365.1 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004278/0.1014, allocations: 226.8 kB / 365.3 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.321e-06/0.1015, allocations: 7.984 kB / 365.3 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1015, allocations: 0 / 365.3 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.1015, allocations: 0 / 365.3 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000239/0.1017, allocations: 269.5 kB / 365.6 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.1017, allocations: 0 / 365.6 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.1019, allocations: 24.03 kB / 365.6 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.1019, allocations: 3.938 kB / 365.6 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.1019, allocations: 8 kB / 365.6 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1019, allocations: 0 / 365.6 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.1019, allocations: 0 / 365.6 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003944/0.1023, allocations: 233.5 kB / 365.9 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.635e-05/0.1024, allocations: 92.83 kB / 366 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.872e-05/0.1024, allocations: 7.984 kB / 366 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.1025, allocations: 15.98 kB / 366 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.998e-05/0.1026, allocations: 23.97 kB / 366 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-06/0.1026, allocations: 0 / 366 MB, free: 5.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000121/0.1028, allocations: 148.7 kB / 366.2 MB, free: 5.105 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1028, allocations: 0 / 366.2 MB, free: 5.105 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002583/0.103, allocations: 35.94 kB / 366.2 MB, free: 5.07 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.0001353/0.1032, allocations: 103.2 kB / 366.3 MB, free: 4.961 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000364/0.1035, allocations: 171.9 kB / 366.5 MB, free: 4.793 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1036, allocations: 0 / 366.5 MB, free: 4.793 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001649/0.1037, allocations: 87.89 kB / 366.5 MB, free: 4.707 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.1041, allocations: 35.91 kB / 366.6 MB, free: 4.672 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006955/0.1048, allocations: 476.5 kB / 367 MB, free: 4.172 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002937/0.1051, allocations: 0.7319 MB / 367.8 MB, free: 3.414 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.096e-05/0.1051, allocations: 23.36 kB / 367.8 MB, free: 3.391 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1052, allocations: 0 / 367.8 MB, free: 3.391 MB / 302.1 MB Notification: Performance of Templates: time 0.004302/0.1095, allocations: 2.436 MB / 370.2 MB, free: 0.9688 MB / 302.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