Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.001398/0.001398, allocations: 109.4 kB / 18.34 MB, free: 4.828 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.001404/0.001405, allocations: 192.1 kB / 19.28 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.44/1.44, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 51.92 kB / 282.1 MB, free: 2.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.112, allocations: 46.63 MB / 328.7 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003194/0.1153, allocations: 1.86 MB / 330.6 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.1164, allocations: 0.625 MB / 331.2 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.1166, allocations: 8 kB / 331.2 MB, free: 1.246 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001412/0.1167, allocations: 27.67 kB / 331.2 MB, free: 1.219 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001563/0.1169, allocations: 31.66 kB / 331.3 MB, free: 1.188 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002927/0.1172, allocations: 67.86 kB / 331.3 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002685/0.1175, allocations: 163.5 kB / 331.5 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001849/0.1177, allocations: 77.5 kB / 331.6 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001018/0.1178, allocations: 59.78 kB / 331.6 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.1179, allocations: 87.55 kB / 331.7 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.035e-05/0.118, allocations: 12 kB / 331.7 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.668e-05/0.1181, allocations: 27.92 kB / 331.7 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.379e-05/0.1182, allocations: 43.84 kB / 331.8 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.119e-05/0.1183, allocations: 75.53 kB / 331.9 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.1185, allocations: 191.2 kB / 332 MB, free: 404 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1185, allocations: 0 / 332 MB, free: 404 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1185, allocations: 0 / 332 MB, free: 404 kB / 270.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.1185, allocations: 0 / 332 MB, free: 404 kB / 270.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.0008175/0.1194, allocations: 0.5067 MB / 332.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.1194, allocations: 8.031 kB / 332.6 MB, free: 15.83 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.22e-05/0.1195, allocations: 24.66 kB / 332.6 MB, free: 15.81 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002696/0.1197, allocations: 239.7 kB / 332.8 MB, free: 15.54 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.622e-05/0.1198, allocations: 8.656 kB / 332.8 MB, free: 15.53 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.076e-05/0.1198, allocations: 20.38 kB / 332.8 MB, free: 15.51 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003472/0.1202, allocations: 195.3 kB / 333 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.1202, allocations: 0 / 333 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.1202, allocations: 4 kB / 333 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.529e-05/0.1202, allocations: 12 kB / 333.1 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002863/0.1205, allocations: 147.7 kB / 333.2 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.1216, allocations: 0.7701 MB / 334 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003326/0.122, allocations: 169 kB / 334.1 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001365/0.1221, allocations: 73.95 kB / 334.2 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.202e-05/0.1222, allocations: 7.984 kB / 334.2 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002445/0.1224, allocations: 150 kB / 334.4 MB, free: 13.88 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 4.999e-06/0.1224, allocations: 3.984 kB / 334.4 MB, free: 13.87 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005262/0.123, allocations: 257.2 kB / 334.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.791e-05/0.123, allocations: 85.09 kB / 334.7 MB, free: 13.51 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000171/0.1232, allocations: 202.9 kB / 334.9 MB, free: 13.3 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.1232, allocations: 33.7 kB / 334.9 MB, free: 13.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.973e-05/0.1233, allocations: 140.1 kB / 335.1 MB, free: 13.12 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.46e-05/0.1234, allocations: 47.39 kB / 335.1 MB, free: 13.07 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.42e-05/0.1234, allocations: 41.7 kB / 335.1 MB, free: 13.03 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1236, allocations: 326.8 kB / 335.5 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.1237, allocations: 71.95 kB / 335.5 MB, free: 12.63 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.1239, allocations: 126.8 kB / 335.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003113/0.1242, allocations: 210.6 kB / 335.9 MB, free: 12.25 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.1242, allocations: 0 / 335.9 MB, free: 12.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003876/0.1246, allocations: 237.1 kB / 336.1 MB, free: 12.01 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.1246, allocations: 4 kB / 336.1 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.1247, allocations: 7.984 kB / 336.1 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.1247, allocations: 4.188 kB / 336.1 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000164/0.1248, allocations: 35.92 kB / 336.2 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.1249, allocations: 4 kB / 336.2 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.125, allocations: 31.81 kB / 336.2 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.125, allocations: 8 kB / 336.2 MB, free: 11.92 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,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.0001309/0.1252, allocations: 149.6 kB / 336.3 MB, free: 11.76 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.941e-05/0.1252, allocations: 19.92 kB / 336.4 MB, free: 11.74 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004235/0.1256, allocations: 218.8 kB / 336.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1257, allocations: 4 kB / 336.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.1257, allocations: 0 / 336.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1257, allocations: 0 / 336.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002608/0.1259, allocations: 273.4 kB / 336.8 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.126, allocations: 0 / 336.8 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.1261, allocations: 23.97 kB / 336.9 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.1261, allocations: 0 / 336.9 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.1261, allocations: 4 kB / 336.9 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1261, allocations: 8.891 kB / 336.9 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1261, allocations: 3.938 kB / 336.9 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003582/0.1265, allocations: 228 kB / 337.1 MB, free: 10.92 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.674e-05/0.1266, allocations: 92.92 kB / 337.2 MB, free: 10.81 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.563e-05/0.1266, allocations: 0 / 337.2 MB, free: 10.81 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.1267, allocations: 27.97 kB / 337.2 MB, free: 10.78 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.279e-05/0.1268, allocations: 11.98 kB / 337.2 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.1268, allocations: 7.984 kB / 337.2 MB, free: 10.76 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001218/0.1269, allocations: 148.4 kB / 337.4 MB, free: 10.62 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.127, allocations: 0 / 337.4 MB, free: 10.62 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002621/0.1272, allocations: 39.84 kB / 337.4 MB, free: 10.58 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 (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.000149/0.1274, allocations: 103.2 kB / 337.5 MB, free: 10.47 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003814/0.1278, allocations: 175.8 kB / 337.7 MB, free: 10.3 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1278, allocations: 0 / 337.7 MB, free: 10.3 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001683/0.128, allocations: 84.03 kB / 337.8 MB, free: 10.21 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.1283, allocations: 51.86 kB / 337.8 MB, free: 10.16 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006547/0.129, allocations: 373.6 kB / 338.2 MB, free: 9.77 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.1292, allocations: 0.7319 MB / 338.9 MB, free: 9.012 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001042/0.1293, allocations: 41.5 kB / 339 MB, free: 8.973 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.263e-05/0.1294, allocations: 19.44 kB / 339 MB, free: 8.953 MB / 286.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1294, allocations: 192 / 339 MB, free: 8.953 MB / 286.1 MB Notification: Performance of Templates: time 0.005286/0.1347, allocations: 2.107 MB / 341.1 MB, free: 6.848 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches