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.001024/0.001024, allocations: 95.66 kB / 16.3 MB, free: 6.457 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.0009301/0.0009302, allocations: 184.7 kB / 17.2 MB, free: 6.34 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.408/1.408, allocations: 223.2 MB / 241.1 MB, free: 5.34 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002636/0.0002636, allocations: 8.969 kB / 300.7 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1161, allocations: 50.43 MB / 351.1 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001981/0.1182, allocations: 1.515 MB / 352.6 MB, free: 10.12 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000953/0.1191, allocations: 0.5496 MB / 353.2 MB, free: 9.57 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.939e-05/0.1192, allocations: 4 kB / 353.2 MB, free: 9.566 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.74e-05/0.1194, allocations: 11.86 kB / 353.2 MB, free: 9.555 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000142/0.1195, allocations: 35.81 kB / 353.2 MB, free: 9.52 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002323/0.1197, allocations: 55.88 kB / 353.3 MB, free: 9.465 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001905/0.1199, allocations: 111.7 kB / 353.4 MB, free: 9.355 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/0.1201, allocations: 49.19 kB / 353.5 MB, free: 9.312 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.1202, allocations: 59.64 kB / 353.5 MB, free: 9.254 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000127/0.1204, allocations: 63.64 kB / 353.6 MB, free: 9.191 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.249e-05/0.1204, allocations: 8 kB / 353.6 MB, free: 9.184 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.922e-05/0.1205, allocations: 8 kB / 353.6 MB, free: 9.176 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.631e-05/0.1205, allocations: 35.89 kB / 353.6 MB, free: 9.141 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.059e-05/0.1206, allocations: 49.58 kB / 353.7 MB, free: 9.086 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001539/0.1208, allocations: 119.7 kB / 353.8 MB, free: 8.969 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.1208, allocations: 0 / 353.8 MB, free: 8.969 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1208, allocations: 0 / 353.8 MB, free: 8.969 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.1208, allocations: 0 / 353.8 MB, free: 8.969 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.0008301/0.1216, allocations: 498.8 kB / 354.3 MB, free: 8.43 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.1217, allocations: 8.031 kB / 354.3 MB, free: 8.422 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.267e-05/0.1217, allocations: 27.67 kB / 354.3 MB, free: 8.395 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002601/0.122, allocations: 222.6 kB / 354.5 MB, free: 8.137 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.373e-05/0.122, allocations: 12.27 kB / 354.5 MB, free: 8.125 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.023e-05/0.1221, allocations: 31.92 kB / 354.6 MB, free: 8.094 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003568/0.1224, allocations: 194.9 kB / 354.8 MB, free: 7.887 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.1224, allocations: 0 / 354.8 MB, free: 7.887 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.201e-05/0.1225, allocations: 11.95 kB / 354.8 MB, free: 7.875 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.007e-05/0.1225, allocations: 4 kB / 354.8 MB, free: 7.871 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003089/0.1228, allocations: 155.8 kB / 354.9 MB, free: 7.719 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.1239, allocations: 0.7897 MB / 355.7 MB, free: 6.867 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000305/0.1242, allocations: 176.9 kB / 355.9 MB, free: 6.676 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.565e-05/0.1243, allocations: 4 kB / 355.9 MB, free: 6.672 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002509/0.1245, allocations: 147.5 kB / 356 MB, free: 6.512 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.1245, allocations: 0 / 356 MB, free: 6.512 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005596/0.1251, allocations: 269.5 kB / 356.3 MB, free: 6.242 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/0.1252, allocations: 77.11 kB / 356.4 MB, free: 6.148 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.1254, allocations: 199 kB / 356.6 MB, free: 5.945 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.1254, allocations: 33.69 kB / 356.6 MB, free: 5.906 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.318e-05/0.1255, allocations: 140.1 kB / 356.7 MB, free: 5.766 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.991e-05/0.1255, allocations: 55.38 kB / 356.8 MB, free: 5.711 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.849e-06/0.1255, allocations: 4 kB / 356.8 MB, free: 5.707 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.1257, allocations: 330.8 kB / 357.1 MB, free: 5.375 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.1258, allocations: 71.95 kB / 357.2 MB, free: 5.305 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.126, allocations: 126.8 kB / 357.3 MB, free: 5.156 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001616/0.1262, allocations: 87.91 kB / 357.4 MB, free: 5.07 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.1262, allocations: 4 kB / 357.4 MB, free: 5.066 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004177/0.1266, allocations: 249.1 kB / 357.7 MB, free: 4.816 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.1266, allocations: 4.109 kB / 357.7 MB, free: 4.812 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1267, allocations: 12.12 kB / 357.7 MB, free: 4.801 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.1267, allocations: 4 kB / 357.7 MB, free: 4.797 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001729/0.1269, allocations: 31.92 kB / 357.7 MB, free: 4.766 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.1269, allocations: 4.703 kB / 357.7 MB, free: 4.762 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001627/0.127, allocations: 39.81 kB / 357.7 MB, free: 4.723 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.379e-05/0.1271, allocations: 4 kB / 357.8 MB, free: 4.719 MB / 286.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,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001274/0.1272, allocations: 145.8 kB / 357.9 MB, free: 4.566 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.993e-05/0.1272, allocations: 19.77 kB / 357.9 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004373/0.1277, allocations: 226.9 kB / 358.1 MB, free: 4.312 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.1277, allocations: 3.984 kB / 358.1 MB, free: 4.309 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.1277, allocations: 8 kB / 358.1 MB, free: 4.301 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1277, allocations: 0 / 358.1 MB, free: 4.301 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002743/0.128, allocations: 269.5 kB / 358.4 MB, free: 3.988 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.128, allocations: 3.938 kB / 358.4 MB, free: 3.984 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.1281, allocations: 27.98 kB / 358.4 MB, free: 3.957 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.1281, allocations: 3.953 kB / 358.4 MB, free: 3.953 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.1282, allocations: 4 kB / 358.4 MB, free: 3.949 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.1282, allocations: 0 / 358.4 MB, free: 3.949 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1282, allocations: 3.938 kB / 358.5 MB, free: 3.945 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003662/0.1285, allocations: 239.4 kB / 358.7 MB, free: 3.684 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.814e-05/0.1286, allocations: 96.81 kB / 358.8 MB, free: 3.57 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.654e-05/0.1286, allocations: 7.984 kB / 358.8 MB, free: 3.562 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.1288, allocations: 27.98 kB / 358.8 MB, free: 3.535 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.587e-05/0.1289, allocations: 11.97 kB / 358.8 MB, free: 3.523 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.859e-06/0.1289, allocations: 8 kB / 358.8 MB, free: 3.516 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001054/0.129, allocations: 140.6 kB / 359 MB, free: 3.379 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.129, allocations: 0 / 359 MB, free: 3.379 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002483/0.1292, allocations: 35.91 kB / 359 MB, free: 3.344 MB / 286.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 (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.0001474/0.1294, allocations: 115.7 kB / 359.1 MB, free: 3.223 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004433/0.1298, allocations: 175.8 kB / 359.3 MB, free: 3.051 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1299, allocations: 0 / 359.3 MB, free: 3.051 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001681/0.13, allocations: 92.25 kB / 359.4 MB, free: 2.961 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.1303, allocations: 35.97 kB / 359.4 MB, free: 2.926 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006332/0.131, allocations: 418.9 kB / 359.8 MB, free: 2.492 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002956/0.1313, allocations: 0.7477 MB / 360.6 MB, free: 1.719 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001081/0.1314, allocations: 37.52 kB / 360.6 MB, free: 1.684 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.179e-05/0.1314, allocations: 15.44 kB / 360.6 MB, free: 1.668 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1314, allocations: 0 / 360.6 MB, free: 1.668 MB / 286.1 MB Notification: Performance of Templates: time 0.004395/0.1358, allocations: 1.809 MB / 362.4 MB, free: 15.88 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/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