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.001363/0.001364, allocations: 108 kB / 16.92 MB, free: 6.332 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.001615/0.001615, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.288/1.288, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009339/0.0009339, allocations: 44 kB / 300.7 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0745/0.07545, allocations: 49.43 MB / 350.1 MB, free: 4.367 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002875/0.07836, allocations: 1.86 MB / 352 MB, free: 2.484 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009832/0.07937, allocations: 0.5921 MB / 352.6 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.0795, allocations: 0 / 352.6 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.07966, allocations: 27.67 kB / 352.6 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001392/0.0798, allocations: 39.66 kB / 352.7 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002567/0.08007, allocations: 63.86 kB / 352.7 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002009/0.08028, allocations: 167.3 kB / 352.9 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.08045, allocations: 73.62 kB / 353 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.08057, allocations: 67.72 kB / 353 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001358/0.08072, allocations: 83.55 kB / 353.1 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.916e-05/0.08075, allocations: 12 kB / 353.1 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.711e-05/0.08083, allocations: 23.98 kB / 353.1 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.544e-05/0.08091, allocations: 39.84 kB / 353.2 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.891e-05/0.081, allocations: 79.48 kB / 353.3 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002161/0.08122, allocations: 171.6 kB / 353.4 MB, free: 1.059 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.08123, allocations: 8 kB / 353.4 MB, free: 1.051 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.08124, allocations: 0 / 353.4 MB, free: 1.051 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.08125, allocations: 0 / 353.4 MB, free: 1.051 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.0007755/0.08203, allocations: 0.5066 MB / 353.9 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.08207, allocations: 8.031 kB / 353.9 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.85e-05/0.08213, allocations: 50.72 kB / 354 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.798e-05/0.08218, allocations: 28.66 kB / 354 MB, free: 408 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002191/0.08241, allocations: 235.7 kB / 354.3 MB, free: 132 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.08243, allocations: 16.64 kB / 354.3 MB, free: 116 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.223e-05/0.08246, allocations: 15.94 kB / 354.3 MB, free: 100 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003213/0.08279, allocations: 191.8 kB / 354.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.08281, allocations: 0 / 354.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.08283, allocations: 11.98 kB / 354.5 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.839e-05/0.08286, allocations: 8 kB / 354.5 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002843/0.08314, allocations: 147.8 kB / 354.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009687/0.08412, allocations: 0.7739 MB / 355.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002834/0.08442, allocations: 165 kB / 355.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.08457, allocations: 73.81 kB / 355.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.42e-05/0.08461, allocations: 7.984 kB / 355.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002185/0.08483, allocations: 148.9 kB / 355.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.08485, allocations: 3.938 kB / 355.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005114/0.08536, allocations: 253.5 kB / 356.1 MB, free: 14.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.866e-05/0.08542, allocations: 81.11 kB / 356.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.08559, allocations: 203 kB / 356.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.08561, allocations: 25.7 kB / 356.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.141e-05/0.0857, allocations: 152 kB / 356.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.484e-05/0.08574, allocations: 43.55 kB / 356.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.091e-05/0.0858, allocations: 45.64 kB / 356.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.412e-05/0.0859, allocations: 338.8 kB / 356.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.08605, allocations: 67.95 kB / 357 MB, free: 13.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.08621, allocations: 122.8 kB / 357.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002893/0.08651, allocations: 198.7 kB / 357.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.08652, allocations: 4 kB / 357.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003855/0.08691, allocations: 245.8 kB / 357.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.08693, allocations: 8 kB / 357.6 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.08695, allocations: 0 / 357.6 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.08697, allocations: 8.188 kB / 357.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.08713, allocations: 31.92 kB / 357.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.08714, allocations: 7.984 kB / 357.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001489/0.0873, allocations: 27.83 kB / 357.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.413e-05/0.08732, allocations: 8 kB / 357.6 MB, free: 12.52 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.0001116/0.08744, allocations: 150.2 kB / 357.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.915e-05/0.08747, allocations: 19.8 kB / 357.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003998/0.08788, allocations: 223 kB / 358 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.08789, allocations: 0 / 358 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.0879, allocations: 0 / 358 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.08791, allocations: 4.094 kB / 358 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002283/0.08815, allocations: 273.3 kB / 358.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.08816, allocations: 0 / 358.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.08828, allocations: 23.98 kB / 358.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.0883, allocations: 0 / 358.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.08831, allocations: 4 kB / 358.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.08832, allocations: 4 kB / 358.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.08833, allocations: 3.938 kB / 358.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003424/0.08868, allocations: 229.6 kB / 358.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.971e-05/0.08874, allocations: 96.91 kB / 358.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.7e-05/0.08877, allocations: 4 kB / 358.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001255/0.0889, allocations: 19.98 kB / 358.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.11e-05/0.08896, allocations: 15.97 kB / 358.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.08898, allocations: 8 kB / 358.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001007/0.08908, allocations: 140.5 kB / 358.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08909, allocations: 4 kB / 358.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002417/0.08933, allocations: 39.84 kB / 358.9 MB, free: 11.17 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.0005778/0.08992, allocations: 0.773 MB / 359.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003443/0.09027, allocations: 175.8 kB / 359.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.09029, allocations: 384 / 359.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001558/0.09045, allocations: 87.88 kB / 359.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.09075, allocations: 44.09 kB / 359.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002232/0.09299, allocations: 2.177 MB / 362.1 MB, free: 7.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.09325, allocations: 0.7358 MB / 362.9 MB, free: 6.988 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.09336, allocations: 37.45 kB / 362.9 MB, free: 6.953 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.28e-05/0.09345, allocations: 59.42 kB / 363 MB, free: 6.895 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.09345, allocations: 0 / 363 MB, free: 6.895 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8851/0.9786, allocations: 4.048 MB / 367 MB, free: 2.922 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/12.04, allocations: 17.81 kB / 367 MB, free: 2.91 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