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.00112/0.00112, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 61.67 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1203, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003287/0.1236, allocations: 1.883 MB / 360.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.1249, allocations: 0.6467 MB / 361.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/0.1251, allocations: 4 kB / 361.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001424/0.1253, allocations: 27.67 kB / 361.4 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001709/0.1255, allocations: 31.66 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003415/0.1258, allocations: 83.78 kB / 361.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002446/0.1261, allocations: 175.4 kB / 361.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/0.1263, allocations: 76.05 kB / 361.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001781/0.1264, allocations: 79.64 kB / 361.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.1266, allocations: 79.62 kB / 362 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.056e-05/0.1266, allocations: 12 kB / 362 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.982e-05/0.1267, allocations: 27.98 kB / 362 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.496e-05/0.1268, allocations: 43.83 kB / 362 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.576e-05/0.1269, allocations: 79.42 kB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002576/0.1272, allocations: 195.2 kB / 362.3 MB, free: 9.918 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1272, allocations: 0 / 362.3 MB, free: 9.918 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1272, allocations: 0 / 362.3 MB, free: 9.918 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.1272, allocations: 0 / 362.3 MB, free: 9.918 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.0008801/0.1281, allocations: 0.5066 MB / 362.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.1282, allocations: 15.97 kB / 362.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.1283, allocations: 28.73 kB / 362.9 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002779/0.1286, allocations: 239.6 kB / 363.1 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.1286, allocations: 16.66 kB / 363.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.574e-05/0.1287, allocations: 20.31 kB / 363.1 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003477/0.129, allocations: 192.1 kB / 363.3 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.129, allocations: 0 / 363.3 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.781e-05/0.1291, allocations: 8 kB / 363.3 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.1e-05/0.1291, allocations: 4 kB / 363.3 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000289/0.1294, allocations: 155.8 kB / 363.5 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.1304, allocations: 0.7662 MB / 364.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002979/0.1307, allocations: 169 kB / 364.4 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001366/0.1309, allocations: 73.91 kB / 364.5 MB, free: 7.551 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.729e-05/0.1309, allocations: 7.984 kB / 364.5 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00024/0.1312, allocations: 149 kB / 364.6 MB, free: 7.379 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.663e-06/0.1312, allocations: 0 / 364.6 MB, free: 7.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005369/0.1317, allocations: 253.3 kB / 364.9 MB, free: 7.125 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.83e-05/0.1318, allocations: 89.11 kB / 365 MB, free: 7.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001938/0.132, allocations: 207 kB / 365.2 MB, free: 6.809 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.132, allocations: 33.7 kB / 365.2 MB, free: 6.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.655e-05/0.1321, allocations: 136.2 kB / 365.3 MB, free: 6.629 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.267e-05/0.1322, allocations: 39.45 kB / 365.4 MB, free: 6.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.098e-05/0.1323, allocations: 53.61 kB / 365.4 MB, free: 6.531 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.1324, allocations: 326.8 kB / 365.8 MB, free: 6.203 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.1326, allocations: 71.89 kB / 365.8 MB, free: 6.133 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002102/0.1328, allocations: 130.7 kB / 365.9 MB, free: 5.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002929/0.1331, allocations: 214.5 kB / 366.2 MB, free: 5.746 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1331, allocations: 0 / 366.2 MB, free: 5.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004009/0.1335, allocations: 241.3 kB / 366.4 MB, free: 5.504 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.1335, allocations: 4 kB / 366.4 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.1335, allocations: 4 kB / 366.4 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.1336, allocations: 4 kB / 366.4 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.1337, allocations: 35.92 kB / 366.4 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.1337, allocations: 0 / 366.4 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001548/0.1339, allocations: 31.81 kB / 366.5 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.564e-05/0.1339, allocations: 8 kB / 366.5 MB, free: 5.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.0001241/0.1341, allocations: 161.8 kB / 366.6 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.861e-05/0.1341, allocations: 19.75 kB / 366.7 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004144/0.1345, allocations: 211.5 kB / 366.9 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.1345, allocations: 4 kB / 366.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1345, allocations: 0 / 366.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.1346, allocations: 4 kB / 366.9 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002432/0.1348, allocations: 273.5 kB / 367.1 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1348, allocations: 4 kB / 367.1 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.1349, allocations: 19.98 kB / 367.2 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.1349, allocations: 0 / 367.2 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.135, allocations: 4 kB / 367.2 MB, free: 4.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.706e-06/0.135, allocations: 4 kB / 367.2 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.135, allocations: 0 / 367.2 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003611/0.1353, allocations: 233.7 kB / 367.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.728e-05/0.1354, allocations: 96.83 kB / 367.5 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.974e-05/0.1354, allocations: 7.984 kB / 367.5 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001481/0.1356, allocations: 11.98 kB / 367.5 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.253e-05/0.1357, allocations: 19.97 kB / 367.5 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.1357, allocations: 4 kB / 367.5 MB, free: 4.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001172/0.1358, allocations: 144.7 kB / 367.7 MB, free: 4.109 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1358, allocations: 96 / 367.7 MB, free: 4.109 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002842/0.1361, allocations: 47.88 kB / 367.7 MB, free: 4.062 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.0001577/0.1363, allocations: 109.6 kB / 367.8 MB, free: 3.949 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005009/0.1368, allocations: 171.8 kB / 368 MB, free: 3.781 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1368, allocations: 0 / 368 MB, free: 3.781 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001704/0.137, allocations: 80.27 kB / 368.1 MB, free: 3.703 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.1373, allocations: 47.84 kB / 368.1 MB, free: 3.656 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000698/0.138, allocations: 377.3 kB / 368.5 MB, free: 3.258 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003799/0.1384, allocations: 0.7358 MB / 369.2 MB, free: 2.496 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001446/0.1386, allocations: 29.53 kB / 369.3 MB, free: 2.469 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.582e-05/0.1386, allocations: 23.42 kB / 369.3 MB, free: 2.445 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1386, allocations: 0 / 369.3 MB, free: 2.445 MB / 302.1 MB Notification: Performance of Templates: time 0.00526/0.1439, allocations: 2.107 MB / 371.4 MB, free: 368 kB / 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 -s cvode -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