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.001023/0.001023, allocations: 101.2 kB / 16.94 MB, free: 5.984 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.001/0.001, allocations: 177.7 kB / 17.82 MB, free: 5.652 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.744/1.744, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004608/0.000461, allocations: 15.98 kB / 280.7 MB, free: 3.77 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1171, allocations: 47.58 MB / 328.3 MB, free: 4.117 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002213/0.1193, allocations: 1.518 MB / 329.8 MB, free: 2.586 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001082/0.1204, allocations: 0.5895 MB / 330.4 MB, free: 1.988 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.1206, allocations: 7.875 kB / 330.4 MB, free: 1.98 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.79e-05/0.1207, allocations: 11.86 kB / 330.4 MB, free: 1.969 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001633/0.1209, allocations: 35.88 kB / 330.5 MB, free: 1.934 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002518/0.1211, allocations: 51.88 kB / 330.5 MB, free: 1.883 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002098/0.1214, allocations: 111.7 kB / 330.6 MB, free: 1.773 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.1215, allocations: 53.42 kB / 330.7 MB, free: 1.719 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001169/0.1217, allocations: 59.7 kB / 330.7 MB, free: 1.66 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001211/0.1218, allocations: 59.7 kB / 330.8 MB, free: 1.602 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.978e-05/0.1218, allocations: 7.938 kB / 330.8 MB, free: 1.594 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.163e-05/0.1219, allocations: 15.98 kB / 330.8 MB, free: 1.578 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.131e-05/0.122, allocations: 35.83 kB / 330.9 MB, free: 1.543 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.831e-05/0.122, allocations: 53.58 kB / 330.9 MB, free: 1.484 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001561/0.1222, allocations: 112 kB / 331 MB, free: 1.375 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.1222, allocations: 0 / 331 MB, free: 1.375 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.1222, allocations: 0 / 331 MB, free: 1.375 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.1222, allocations: 0 / 331 MB, free: 1.375 MB / 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.0008431/0.1231, allocations: 498.8 kB / 331.5 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.1231, allocations: 8.031 kB / 331.5 MB, free: 0.832 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.901e-05/0.1232, allocations: 23.72 kB / 331.5 MB, free: 0.8086 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002855/0.1235, allocations: 226.6 kB / 331.8 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.306e-05/0.1235, allocations: 20.23 kB / 331.8 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.903e-05/0.1236, allocations: 12 kB / 331.8 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003973/0.124, allocations: 198.9 kB / 332 MB, free: 312 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.124, allocations: 0 / 332 MB, free: 312 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.1e-05/0.124, allocations: 7.938 kB / 332 MB, free: 304 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.482e-05/0.124, allocations: 12 kB / 332 MB, free: 292 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003216/0.1244, allocations: 147.8 kB / 332.2 MB, free: 144 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.1257, allocations: 0.7859 MB / 332.9 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003687/0.1261, allocations: 165 kB / 333.1 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.119e-05/0.1262, allocations: 8 kB / 333.1 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002808/0.1264, allocations: 156.9 kB / 333.3 MB, free: 14.93 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.753e-06/0.1265, allocations: 0 / 333.3 MB, free: 14.93 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.000663/0.1271, allocations: 261.5 kB / 333.5 MB, free: 14.67 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.981e-05/0.1272, allocations: 85.05 kB / 333.6 MB, free: 14.57 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002128/0.1274, allocations: 203 kB / 333.8 MB, free: 14.36 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.053e-05/0.1275, allocations: 29.7 kB / 333.8 MB, free: 14.33 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.1276, allocations: 148.1 kB / 334 MB, free: 14.18 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.528e-05/0.1277, allocations: 43.44 kB / 334 MB, free: 14.13 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.037e-05/0.1277, allocations: 4 kB / 334 MB, free: 14.13 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.1278, allocations: 326.8 kB / 334.3 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.128, allocations: 75.95 kB / 334.4 MB, free: 13.73 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.1282, allocations: 126.8 kB / 334.5 MB, free: 13.58 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001655/0.1284, allocations: 91.83 kB / 334.6 MB, free: 13.49 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1284, allocations: 0 / 334.6 MB, free: 13.49 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004131/0.1288, allocations: 249.1 kB / 334.9 MB, free: 13.24 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.1289, allocations: 8.188 kB / 334.9 MB, free: 13.23 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.1289, allocations: 7.984 kB / 334.9 MB, free: 13.22 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.1289, allocations: 4 kB / 334.9 MB, free: 13.22 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.1291, allocations: 35.91 kB / 334.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.1291, allocations: 4 kB / 334.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001877/0.1293, allocations: 39.89 kB / 335 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.487e-05/0.1293, allocations: 11.92 kB / 335 MB, free: 13.13 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.0001245/0.1294, allocations: 145.7 kB / 335.1 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.673e-05/0.1295, allocations: 15.81 kB / 335.1 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000433/0.1299, allocations: 219.6 kB / 335.3 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1299, allocations: 11.98 kB / 335.4 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1299, allocations: 0 / 335.4 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.13, allocations: 4 kB / 335.4 MB, free: 12.72 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003941/0.1304, allocations: 265.4 kB / 335.6 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1304, allocations: 0 / 335.6 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/0.1305, allocations: 27.98 kB / 335.7 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.257e-06/0.1305, allocations: 0 / 335.7 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.1305, allocations: 3.984 kB / 335.7 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.1305, allocations: 4 kB / 335.7 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1306, allocations: 160 / 335.7 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004215/0.131, allocations: 258.6 kB / 335.9 MB, free: 12.1 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.755e-05/0.1311, allocations: 88.92 kB / 336 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.837e-05/0.1311, allocations: 8 kB / 336 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001526/0.1313, allocations: 27.97 kB / 336 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.276e-05/0.1313, allocations: 7.984 kB / 336 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.1314, allocations: 11.98 kB / 336.1 MB, free: 11.94 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001307/0.1315, allocations: 148.3 kB / 336.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1315, allocations: 96 / 336.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002798/0.1318, allocations: 43.78 kB / 336.2 MB, free: 11.75 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.0001687/0.132, allocations: 111.2 kB / 336.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004034/0.1324, allocations: 179.8 kB / 336.5 MB, free: 11.46 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1324, allocations: 384 / 336.5 MB, free: 11.46 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001678/0.1326, allocations: 87.94 kB / 336.6 MB, free: 11.38 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/0.1329, allocations: 43.86 kB / 336.7 MB, free: 11.33 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006798/0.1335, allocations: 426 kB / 337.1 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/0.1339, allocations: 0.736 MB / 337.8 MB, free: 10.12 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001281/0.134, allocations: 37.52 kB / 337.8 MB, free: 10.09 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.447e-05/0.1341, allocations: 27.42 kB / 337.9 MB, free: 10.06 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1341, allocations: 0 / 337.9 MB, free: 10.06 MB / 286.1 MB Notification: Performance of Templates: time 0.005084/0.1392, allocations: 1.805 MB / 339.7 MB, free: 8.262 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.makefile Environment - environmentSimulation: (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 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches