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.001218/0.001218, allocations: 96.91 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001523/0.001523, allocations: 198 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002382/0.0002382, allocations: 8 kB / 306.6 MB, free: 1.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1251, allocations: 51.5 MB / 358.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002223/0.1274, allocations: 1.528 MB / 359.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.1286, allocations: 0.5964 MB / 360.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.1287, allocations: 7.938 kB / 360.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.1288, allocations: 15.86 kB / 360.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001565/0.129, allocations: 35.88 kB / 360.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002745/0.1293, allocations: 51.88 kB / 360.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000187/0.1295, allocations: 111.7 kB / 360.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001743/0.1296, allocations: 61.47 kB / 360.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001604/0.1298, allocations: 59.7 kB / 360.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001289/0.1299, allocations: 59.7 kB / 360.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.906e-05/0.13, allocations: 7.938 kB / 360.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.771e-05/0.13, allocations: 15.98 kB / 360.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.42e-05/0.1301, allocations: 35.84 kB / 360.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.034e-05/0.1302, allocations: 53.58 kB / 360.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001624/0.1303, allocations: 120 kB / 360.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.1303, allocations: 0 / 360.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1304, allocations: 0 / 360.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1304, allocations: 0 / 360.8 MB, free: 11.19 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.0008142/0.1312, allocations: 494.5 kB / 361.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.1312, allocations: 8.031 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.1314, allocations: 35.7 kB / 361.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002521/0.1317, allocations: 222.7 kB / 361.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.31e-05/0.1317, allocations: 16.27 kB / 361.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.605e-05/0.1317, allocations: 19.95 kB / 361.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003275/0.1321, allocations: 191.8 kB / 361.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.1321, allocations: 7.938 kB / 361.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.1321, allocations: 4 kB / 361.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.321e-05/0.1321, allocations: 11.98 kB / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002919/0.1324, allocations: 151.8 kB / 361.9 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001197/0.1336, allocations: 0.7897 MB / 362.7 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003143/0.134, allocations: 173 kB / 362.9 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.911e-05/0.134, allocations: 4 kB / 362.9 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000259/0.1343, allocations: 147.4 kB / 363.1 MB, free: 8.738 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.442e-06/0.1343, allocations: 0 / 363.1 MB, free: 8.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005811/0.1349, allocations: 269.5 kB / 363.3 MB, free: 8.469 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.386e-05/0.135, allocations: 85.09 kB / 363.4 MB, free: 8.367 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001861/0.1351, allocations: 202.9 kB / 363.6 MB, free: 8.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.1352, allocations: 29.7 kB / 363.6 MB, free: 8.125 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001539/0.1353, allocations: 140.1 kB / 363.8 MB, free: 7.984 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.793e-05/0.1354, allocations: 43.45 kB / 363.8 MB, free: 7.941 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.091e-05/0.1354, allocations: 8 kB / 363.8 MB, free: 7.934 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1355, allocations: 330.8 kB / 364.1 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001404/0.1357, allocations: 71.95 kB / 364.2 MB, free: 7.531 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001702/0.1359, allocations: 146 kB / 364.3 MB, free: 7.367 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001629/0.136, allocations: 83.91 kB / 364.4 MB, free: 7.285 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1361, allocations: 0 / 364.4 MB, free: 7.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004008/0.1365, allocations: 249.8 kB / 364.7 MB, free: 7.035 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.1365, allocations: 8 kB / 364.7 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.1365, allocations: 112 / 364.7 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.1365, allocations: 8.125 kB / 364.7 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001642/0.1367, allocations: 43.91 kB / 364.7 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.1367, allocations: 0 / 364.7 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/0.1369, allocations: 35.83 kB / 364.8 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.083e-05/0.1369, allocations: 8 kB / 364.8 MB, free: 6.934 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,$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.0001424/0.137, allocations: 153.6 kB / 364.9 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.472e-05/0.1371, allocations: 15.81 kB / 364.9 MB, free: 6.758 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004469/0.1375, allocations: 223 kB / 365.2 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.1376, allocations: 4 kB / 365.2 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1376, allocations: 0 / 365.2 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.1376, allocations: 3.984 kB / 365.2 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002956/0.1379, allocations: 277.4 kB / 365.4 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1379, allocations: 4 kB / 365.4 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001067/0.138, allocations: 19.98 kB / 365.5 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.138, allocations: 4 kB / 365.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.138, allocations: 0 / 365.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.138, allocations: 0 / 365.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1381, allocations: 0 / 365.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004116/0.1385, allocations: 255.3 kB / 365.7 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.848e-05/0.1385, allocations: 92.91 kB / 365.8 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.729e-05/0.1386, allocations: 0 / 365.8 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001335/0.1387, allocations: 27.98 kB / 365.8 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.951e-05/0.1388, allocations: 15.97 kB / 365.8 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.193e-05/0.1388, allocations: 8 kB / 365.9 MB, free: 5.738 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001212/0.1389, allocations: 144.5 kB / 366 MB, free: 5.598 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1389, allocations: 3.938 kB / 366 MB, free: 5.594 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002469/0.1392, allocations: 43.84 kB / 366 MB, free: 5.551 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 (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.0001627/0.1394, allocations: 103.2 kB / 366.1 MB, free: 5.441 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003576/0.1397, allocations: 175.8 kB / 366.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1397, allocations: 0 / 366.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.1399, allocations: 88.27 kB / 366.4 MB, free: 5.184 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.1402, allocations: 43.88 kB / 366.4 MB, free: 5.141 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007366/0.141, allocations: 426.9 kB / 366.9 MB, free: 4.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004138/0.1414, allocations: 0.7477 MB / 367.6 MB, free: 3.922 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.1415, allocations: 37.5 kB / 367.6 MB, free: 3.887 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.271e-05/0.1415, allocations: 15.44 kB / 367.7 MB, free: 3.871 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1416, allocations: 0 / 367.7 MB, free: 3.871 MB / 302.1 MB Notification: Performance of Templates: time 0.005004/0.1466, allocations: 1.81 MB / 369.5 MB, free: 2.082 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches