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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 177.1 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.292/1.292, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008075/0.0008073, allocations: 95.19 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.839e-05/1.841e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09112/0.09116, allocations: 50.41 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3108/0.402, allocations: 76.93 MB / 464.4 MB, free: 1.918 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002022/0.4023, allocations: 63.97 kB / 464.4 MB, free: 1.855 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008066/0.4103, allocations: 2.713 MB / 467.2 MB, free: 15.15 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.4104, allocations: 0 / 467.2 MB, free: 15.15 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.589e-05/0.4104, allocations: 4 kB / 467.2 MB, free: 15.15 MB / 346.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.0006662/0.4111, allocations: 476.1 kB / 467.6 MB, free: 14.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.4111, allocations: 8.031 kB / 467.6 MB, free: 14.63 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.468e-05/0.4112, allocations: 23.72 kB / 467.7 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002532/0.4114, allocations: 234.6 kB / 467.9 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.4115, allocations: 4 kB / 467.9 MB, free: 14.33 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.652e-05/0.4115, allocations: 8.844 kB / 467.9 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002208/0.4117, allocations: 116.5 kB / 468 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002365/0.412, allocations: 158.6 kB / 468.2 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-06/0.412, allocations: 0 / 468.2 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.412, allocations: 7.984 kB / 468.2 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.775e-05/0.412, allocations: 7.984 kB / 468.2 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009831/0.413, allocations: 0.7472 MB / 468.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002188/0.4133, allocations: 133.1 kB / 469.1 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.895e-05/0.4134, allocations: 65.81 kB / 469.1 MB, free: 13.01 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.977e-05/0.4134, allocations: 12.08 kB / 469.1 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001772/0.4136, allocations: 129.7 kB / 469.3 MB, free: 12.85 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.313e-06/0.4136, allocations: 0 / 469.3 MB, free: 12.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003095/0.4139, allocations: 153.9 kB / 469.4 MB, free: 12.7 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.065e-05/0.414, allocations: 85.09 kB / 469.5 MB, free: 12.59 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.4141, allocations: 171.1 kB / 469.7 MB, free: 12.41 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.154e-05/0.4142, allocations: 29.64 kB / 469.7 MB, free: 12.38 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.979e-05/0.4143, allocations: 148.2 kB / 469.8 MB, free: 12.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.41e-05/0.4143, allocations: 35.45 kB / 469.9 MB, free: 12.19 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.768e-06/0.4143, allocations: 0 / 469.9 MB, free: 12.19 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.4145, allocations: 330.8 kB / 470.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.551e-05/0.4146, allocations: 51.98 kB / 470.3 MB, free: 11.81 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.4147, allocations: 106.8 kB / 470.4 MB, free: 11.68 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001174/0.4148, allocations: 64.11 kB / 470.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.4148, allocations: 3.938 kB / 470.4 MB, free: 11.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002934/0.4151, allocations: 197.3 kB / 470.6 MB, free: 11.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.4152, allocations: 5.25 kB / 470.6 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.4152, allocations: 4 kB / 470.6 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.4152, allocations: 4.062 kB / 470.6 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000254/0.4155, allocations: 44.05 kB / 470.7 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.4155, allocations: 7.984 kB / 470.7 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001792/0.4157, allocations: 23.89 kB / 470.7 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.074e-05/0.4157, allocations: 12 kB / 470.7 MB, free: 11.32 MB / 346.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 9.682e-05/0.4158, allocations: 116.8 kB / 470.8 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.895e-05/0.4159, allocations: 23.8 kB / 470.8 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003356/0.4162, allocations: 187.3 kB / 471 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.4162, allocations: 3.953 kB / 471 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.4162, allocations: 0 / 471 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.4162, allocations: 0 / 471 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002383/0.4165, allocations: 230.1 kB / 471.3 MB, free: 10.72 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.4165, allocations: 96 / 471.3 MB, free: 10.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.4166, allocations: 23.92 kB / 471.3 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.4166, allocations: 8 kB / 471.3 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.4167, allocations: 3.984 kB / 471.3 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.4167, allocations: 3.984 kB / 471.3 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4167, allocations: 4 kB / 471.3 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000278/0.417, allocations: 208.8 kB / 471.5 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.056e-05/0.417, allocations: 92.83 kB / 471.6 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.635e-05/0.4171, allocations: 0 / 471.6 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.4172, allocations: 27.97 kB / 471.6 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.587e-05/0.4173, allocations: 23.92 kB / 471.6 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.4173, allocations: 4 kB / 471.7 MB, free: 10.28 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.511e-05/0.4174, allocations: 125.6 kB / 471.8 MB, free: 10.16 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4174, allocations: 0 / 471.8 MB, free: 10.16 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002352/0.4176, allocations: 39.92 kB / 471.8 MB, free: 10.12 MB / 346.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.0001409/0.4178, allocations: 105.1 kB / 471.9 MB, free: 10.01 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000226/0.418, allocations: 135.9 kB / 472.1 MB, free: 9.879 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.418, allocations: 0 / 472.1 MB, free: 9.879 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001135/0.4181, allocations: 71.91 kB / 472.1 MB, free: 9.809 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002676/0.4184, allocations: 31.97 kB / 472.2 MB, free: 9.777 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004773/0.4189, allocations: 250.5 kB / 472.4 MB, free: 9.5 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003008/0.4192, allocations: 0.7437 MB / 473.1 MB, free: 8.727 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001126/0.4193, allocations: 41.83 kB / 473.2 MB, free: 8.688 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.149e-05/0.4194, allocations: 19.38 kB / 473.2 MB, free: 8.668 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4194, allocations: 0 / 473.2 MB, free: 8.668 MB / 346.7 MB Notification: Performance of Templates: time 0.00386/0.4233, allocations: 1.699 MB / 474.9 MB, free: 6.992 MB / 346.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches