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: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001193/0.001192, allocations: 91.86 kB / 16.65 MB, free: 6.59 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.001698/0.001698, allocations: 182.8 kB / 17.56 MB, free: 6.203 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.571/1.571, allocations: 223.3 MB / 241.6 MB, free: 124 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003138/0.0003139, allocations: 12.19 kB / 301.5 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1227, allocations: 50.41 MB / 351.9 MB, free: 3.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002472/0.1253, allocations: 1.574 MB / 353.5 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.1266, allocations: 0.5688 MB / 354.1 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001865/0.1268, allocations: 0 / 354.1 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.127, allocations: 23.8 kB / 354.1 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000207/0.1272, allocations: 23.78 kB / 354.1 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003074/0.1275, allocations: 59.88 kB / 354.2 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002706/0.1278, allocations: 163.3 kB / 354.3 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.128, allocations: 61.62 kB / 354.4 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001522/0.1281, allocations: 55.72 kB / 354.4 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001737/0.1283, allocations: 67.56 kB / 354.5 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.669e-05/0.1284, allocations: 4 kB / 354.5 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.705e-05/0.1284, allocations: 15.98 kB / 354.5 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.88e-05/0.1285, allocations: 31.86 kB / 354.6 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.1287, allocations: 97.17 kB / 354.7 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000233/0.1289, allocations: 159.6 kB / 354.8 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.203e-05/0.1289, allocations: 0 / 354.8 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1289, allocations: 0 / 354.8 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.1289, allocations: 4 kB / 354.8 MB, free: 0.6992 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.0009399/0.1299, allocations: 487 kB / 355.3 MB, free: 176 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.13, allocations: 8.031 kB / 355.3 MB, free: 168 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.069e-05/0.13, allocations: 50.73 kB / 355.4 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.393e-05/0.1301, allocations: 24.66 kB / 355.4 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/0.1304, allocations: 239.7 kB / 355.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/0.1305, allocations: 12.66 kB / 355.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.98e-05/0.1305, allocations: 19.94 kB / 355.6 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003814/0.1309, allocations: 203.7 kB / 355.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.1309, allocations: 0 / 355.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.203e-05/0.1309, allocations: 8 kB / 355.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.147e-05/0.131, allocations: 4 kB / 355.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003354/0.1313, allocations: 159.7 kB / 356 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.1325, allocations: 0.7896 MB / 356.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003376/0.1329, allocations: 169.1 kB / 357 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001739/0.1331, allocations: 77.8 kB / 357 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.292e-05/0.1331, allocations: 7.938 kB / 357 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002977/0.1334, allocations: 153 kB / 357.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.1334, allocations: 0 / 357.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006132/0.1341, allocations: 265.5 kB / 357.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001738/0.1342, allocations: 85.11 kB / 357.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002802/0.1345, allocations: 206.9 kB / 357.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/0.1346, allocations: 29.7 kB / 357.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.1347, allocations: 144.1 kB / 357.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.796e-05/0.1347, allocations: 35.38 kB / 357.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.84e-05/0.1348, allocations: 29.7 kB / 358 MB, free: 13.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1349, allocations: 338.8 kB / 358.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.1351, allocations: 71.95 kB / 358.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.1353, allocations: 134.8 kB / 358.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003478/0.1357, allocations: 210.7 kB / 358.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1357, allocations: 0 / 358.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004463/0.1361, allocations: 253.3 kB / 359 MB, free: 12.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.1362, allocations: 4 kB / 359 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.1362, allocations: 4 kB / 359 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.1362, allocations: 0 / 359 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001794/0.1364, allocations: 47.89 kB / 359 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.1364, allocations: 4 kB / 359 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001765/0.1366, allocations: 35.89 kB / 359.1 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.1366, allocations: 8 kB / 359.1 MB, free: 12.12 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.0001644/0.1368, allocations: 145.6 kB / 359.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.525e-05/0.1368, allocations: 15.92 kB / 359.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000485/0.1373, allocations: 235.5 kB / 359.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-06/0.1373, allocations: 0 / 359.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.1374, allocations: 0 / 359.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.8e-05/0.1374, allocations: 7.984 kB / 359.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002887/0.1377, allocations: 261.5 kB / 359.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1377, allocations: 0 / 359.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.1378, allocations: 23.98 kB / 359.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.1378, allocations: 0 / 359.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.1378, allocations: 4.094 kB / 359.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.1379, allocations: 11.94 kB / 359.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1379, allocations: 0 / 359.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004308/0.1383, allocations: 237.7 kB / 360 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.399e-05/0.1384, allocations: 104.8 kB / 360.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.009e-05/0.1384, allocations: 4 kB / 360.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001407/0.1386, allocations: 19.98 kB / 360.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7e-05/0.1387, allocations: 19.97 kB / 360.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.827e-06/0.1387, allocations: 0 / 360.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001409/0.1388, allocations: 152.5 kB / 360.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1388, allocations: 0 / 360.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002794/0.1391, allocations: 43.94 kB / 360.3 MB, free: 10.75 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.000869/0.14, allocations: 0.7835 MB / 361.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004462/0.1404, allocations: 182.9 kB / 361.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1405, allocations: 0 / 361.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001878/0.1407, allocations: 88.27 kB / 361.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003909/0.1411, allocations: 42.25 kB / 361.4 MB, free: 9.637 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003133/0.1442, allocations: 2.256 MB / 363.7 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003665/0.1446, allocations: 0.7319 MB / 364.4 MB, free: 6.492 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00012/0.1447, allocations: 41.5 kB / 364.4 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.695e-05/0.1448, allocations: 59.42 kB / 364.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1448, allocations: 0 / 364.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01615/0.161, allocations: 3.648 MB / 368.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002121/0.1612, allocations: 189.5 kB / 368.3 MB, free: 2.617 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.936/2.097, allocations: 3.938 kB / 368.3 MB, free: 2.613 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches