Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001522/0.001522, allocations: 181.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.978/1.978, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001028/0.001028, allocations: 94.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.823e-05/2.843e-05, allocations: 4 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09198/0.09203, allocations: 47.57 MB / 369.1 MB, free: 2.227 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3922/0.4842, allocations: 76.8 MB / 445.9 MB, free: 388 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/0.4845, allocations: 66.34 kB / 445.9 MB, free: 356 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01261/0.4972, allocations: 2.68 MB / 448.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4972, allocations: 0 / 448.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.13e-05/0.4973, allocations: 4 kB / 448.6 MB, free: 14.04 MB / 330.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.0009938/0.4983, allocations: 484.5 kB / 449.1 MB, free: 13.53 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.4983, allocations: 12.03 kB / 449.1 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.906e-05/0.4984, allocations: 23.66 kB / 449.1 MB, free: 13.49 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003706/0.4988, allocations: 239.2 kB / 449.4 MB, free: 13.23 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/0.4989, allocations: 15.86 kB / 449.4 MB, free: 13.22 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.712e-05/0.4989, allocations: 11.19 kB / 449.4 MB, free: 13.21 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004407/0.4994, allocations: 178.7 kB / 449.6 MB, free: 13.06 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.4994, allocations: 0 / 449.6 MB, free: 13.06 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.732e-05/0.4994, allocations: 10.5 kB / 449.6 MB, free: 13.05 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.747e-05/0.4995, allocations: 4 kB / 449.6 MB, free: 13.05 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003534/0.4998, allocations: 114.5 kB / 449.7 MB, free: 12.97 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001682/0.5015, allocations: 0.7991 MB / 450.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004576/0.502, allocations: 139.6 kB / 450.6 MB, free: 12.06 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/0.5022, allocations: 70.31 kB / 450.7 MB, free: 12 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.218e-05/0.5023, allocations: 2.875 kB / 450.7 MB, free: 12 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003103/0.5026, allocations: 130.5 kB / 450.8 MB, free: 11.88 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 2.826e-06/0.5026, allocations: 0 / 450.8 MB, free: 11.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005201/0.5031, allocations: 166.4 kB / 451 MB, free: 11.74 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.277e-05/0.5032, allocations: 85.09 kB / 451.1 MB, free: 11.64 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/0.5035, allocations: 182 kB / 451.3 MB, free: 11.48 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.964e-05/0.5036, allocations: 29.27 kB / 451.3 MB, free: 11.45 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.5037, allocations: 199.9 kB / 451.5 MB, free: 11.27 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.321e-05/0.5038, allocations: 41.88 kB / 451.5 MB, free: 11.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.78e-05/0.5038, allocations: 7.625 kB / 451.5 MB, free: 11.23 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.504, allocations: 318 kB / 451.8 MB, free: 10.91 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.5041, allocations: 54.67 kB / 451.9 MB, free: 10.88 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000219/0.5044, allocations: 115.7 kB / 452 MB, free: 10.76 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001934/0.5046, allocations: 60.97 kB / 452.1 MB, free: 10.71 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.5046, allocations: 8 kB / 452.1 MB, free: 10.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005329/0.5052, allocations: 197 kB / 452.3 MB, free: 10.55 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.5052, allocations: 8.094 kB / 452.3 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.5052, allocations: 4.172 kB / 452.3 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.5052, allocations: 7.938 kB / 452.3 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003388/0.5056, allocations: 39.28 kB / 452.3 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/0.5056, allocations: 3.984 kB / 452.3 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003089/0.5059, allocations: 47.38 kB / 452.4 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.533e-05/0.506, allocations: 11.95 kB / 452.4 MB, free: 10.43 MB / 330.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 () * 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.0001284/0.5061, allocations: 119.1 kB / 452.5 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.964e-05/0.5062, allocations: 15.92 kB / 452.5 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005685/0.5068, allocations: 200 kB / 452.7 MB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.5068, allocations: 8 kB / 452.7 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.5068, allocations: 0 / 452.7 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.5068, allocations: 0 / 452.7 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003988/0.5072, allocations: 273.4 kB / 453 MB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.5073, allocations: 0 / 453 MB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000221/0.5075, allocations: 27.92 kB / 453 MB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.5075, allocations: 0 / 453 MB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.5075, allocations: 3.938 kB / 453 MB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.167e-06/0.5076, allocations: 8 kB / 453 MB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.5076, allocations: 0 / 453 MB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004658/0.508, allocations: 219.8 kB / 453.2 MB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.909e-05/0.5081, allocations: 88.92 kB / 453.3 MB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.771e-05/0.5082, allocations: 4 kB / 453.3 MB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002444/0.5084, allocations: 30.97 kB / 453.4 MB, free: 9.473 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.517e-05/0.5085, allocations: 15.17 kB / 453.4 MB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.733e-05/0.5086, allocations: 7.984 kB / 453.4 MB, free: 9.453 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001763/0.5088, allocations: 137.5 kB / 453.5 MB, free: 9.336 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5088, allocations: 0 / 453.5 MB, free: 9.336 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003748/0.5092, allocations: 46.92 kB / 453.6 MB, free: 9.297 MB / 330.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 () * 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.0002065/0.5094, allocations: 100.1 kB / 453.7 MB, free: 9.191 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004829/0.5099, allocations: 158.3 kB / 453.8 MB, free: 9.074 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.5099, allocations: 0 / 453.8 MB, free: 9.074 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002175/0.5101, allocations: 73.03 kB / 453.9 MB, free: 9.02 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004312/0.5106, allocations: 39.52 kB / 453.9 MB, free: 8.988 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00081/0.5114, allocations: 292.6 kB / 454.2 MB, free: 8.707 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003874/0.5118, allocations: 0.7438 MB / 455 MB, free: 7.934 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.5119, allocations: 23.17 kB / 455 MB, free: 7.914 MB / 330.7 MB Notification: Performance of SimCode: time 1.303e-06/0.5119, allocations: 0 / 455 MB, free: 7.914 MB / 330.7 MB Notification: Performance of Templates: time 0.006729/0.5187, allocations: 2.376 MB / 457.4 MB, free: 5.559 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches