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: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_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.001041/0.001041, allocations: 102.9 kB / 17.58 MB, free: 5.418 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.001009/0.001009, allocations: 191.9 kB / 18.51 MB, free: 4.504 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.209/1.209, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001141/0.001141, allocations: 56.14 kB / 280.7 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06695/0.0681, allocations: 46.63 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002675/0.07081, allocations: 1.852 MB / 329.2 MB, free: 2.52 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009184/0.07174, allocations: 0.6289 MB / 329.9 MB, free: 1.883 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.546e-05/0.07183, allocations: 4 kB / 329.9 MB, free: 1.879 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001012/0.07195, allocations: 31.61 kB / 329.9 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001118/0.07207, allocations: 35.66 kB / 329.9 MB, free: 1.812 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002159/0.07229, allocations: 67.86 kB / 330 MB, free: 1.746 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000174/0.07248, allocations: 167.4 kB / 330.2 MB, free: 1.582 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.07262, allocations: 65.44 kB / 330.2 MB, free: 1.516 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.708e-05/0.07272, allocations: 75.69 kB / 330.3 MB, free: 1.441 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.07284, allocations: 75.56 kB / 330.4 MB, free: 1.367 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.746e-05/0.07288, allocations: 12 kB / 330.4 MB, free: 1.355 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.697e-05/0.07294, allocations: 20 kB / 330.4 MB, free: 1.336 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.687e-05/0.07302, allocations: 47.83 kB / 330.4 MB, free: 1.289 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.238e-05/0.0731, allocations: 87.47 kB / 330.5 MB, free: 1.203 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001788/0.07328, allocations: 179.6 kB / 330.7 MB, free: 1.027 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.07329, allocations: 0 / 330.7 MB, free: 1.027 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.0733, allocations: 0 / 330.7 MB, free: 1.027 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.07331, allocations: 0 / 330.7 MB, free: 1.027 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.0007046/0.07401, allocations: 0.4989 MB / 331.2 MB, free: 492 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.901e-05/0.07405, allocations: 12.03 kB / 331.2 MB, free: 480 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.144e-05/0.0741, allocations: 46.73 kB / 331.3 MB, free: 424 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.12e-05/0.07415, allocations: 28.66 kB / 331.3 MB, free: 396 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002185/0.07437, allocations: 239.7 kB / 331.5 MB, free: 116 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.07439, allocations: 8.656 kB / 331.5 MB, free: 108 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.393e-05/0.07442, allocations: 16.38 kB / 331.5 MB, free: 92 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003141/0.07474, allocations: 203.1 kB / 331.7 MB, free: 15.87 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.07476, allocations: 0 / 331.7 MB, free: 15.87 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.07478, allocations: 7.938 kB / 331.7 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.587e-05/0.0748, allocations: 8 kB / 331.8 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002709/0.07508, allocations: 139.9 kB / 331.9 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009173/0.076, allocations: 0.7816 MB / 332.7 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000279/0.07629, allocations: 165 kB / 332.8 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.07644, allocations: 69.81 kB / 332.9 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/0.07648, allocations: 4 kB / 332.9 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002181/0.0767, allocations: 153.1 kB / 333.1 MB, free: 14.45 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.253e-06/0.07671, allocations: 3.938 kB / 333.1 MB, free: 14.45 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004873/0.0772, allocations: 245.4 kB / 333.3 MB, free: 14.2 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/0.07725, allocations: 93.03 kB / 333.4 MB, free: 14.09 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.07741, allocations: 203 kB / 333.6 MB, free: 13.89 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.07743, allocations: 25.7 kB / 333.6 MB, free: 13.86 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.529e-05/0.07751, allocations: 144.1 kB / 333.8 MB, free: 13.71 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.18e-05/0.07755, allocations: 39.45 kB / 333.8 MB, free: 13.67 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.898e-05/0.07762, allocations: 41.7 kB / 333.8 MB, free: 13.62 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.678e-05/0.07771, allocations: 330.8 kB / 334.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.07785, allocations: 71.95 kB / 334.2 MB, free: 13.22 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.07802, allocations: 130.8 kB / 334.4 MB, free: 13.07 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002968/0.07832, allocations: 202.7 kB / 334.6 MB, free: 12.84 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.07834, allocations: 0 / 334.6 MB, free: 12.84 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003818/0.07872, allocations: 241.3 kB / 334.8 MB, free: 12.6 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.07875, allocations: 16.12 kB / 334.8 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.07876, allocations: 3.938 kB / 334.8 MB, free: 12.58 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.07877, allocations: 7.984 kB / 334.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.07893, allocations: 31.92 kB / 334.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.07894, allocations: 4.703 kB / 334.9 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001489/0.0791, allocations: 31.81 kB / 334.9 MB, free: 12.51 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/0.07912, allocations: 8 kB / 334.9 MB, free: 12.5 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.0001067/0.07923, allocations: 153.6 kB / 335 MB, free: 12.34 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.707e-05/0.07926, allocations: 15.81 kB / 335.1 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003853/0.07965, allocations: 214.9 kB / 335.3 MB, free: 12.11 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.07967, allocations: 0 / 335.3 MB, free: 12.11 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/0.07967, allocations: 0 / 335.3 MB, free: 12.11 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.07968, allocations: 0 / 335.3 MB, free: 12.11 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002088/0.0799, allocations: 273.4 kB / 335.5 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.07991, allocations: 3.984 kB / 335.5 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.08002, allocations: 27.98 kB / 335.6 MB, free: 11.76 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.08003, allocations: 3.938 kB / 335.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.08005, allocations: 4 kB / 335.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.08006, allocations: 0 / 335.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.08006, allocations: 0 / 335.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000339/0.08041, allocations: 230.9 kB / 335.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.236e-05/0.08046, allocations: 92.92 kB / 335.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/0.08049, allocations: 96 / 335.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001318/0.08063, allocations: 27.91 kB / 335.9 MB, free: 11.37 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.988e-05/0.08068, allocations: 15.98 kB / 335.9 MB, free: 11.35 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.0807, allocations: 7.984 kB / 335.9 MB, free: 11.34 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001017/0.08081, allocations: 144.3 kB / 336.1 MB, free: 11.2 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08081, allocations: 0 / 336.1 MB, free: 11.2 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002354/0.08106, allocations: 47.84 kB / 336.1 MB, free: 11.16 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.0005728/0.08164, allocations: 0.766 MB / 336.9 MB, free: 10.36 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003477/0.082, allocations: 187.8 kB / 337.1 MB, free: 10.18 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.08201, allocations: 0 / 337.1 MB, free: 10.18 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001533/0.08217, allocations: 79.89 kB / 337.2 MB, free: 10.1 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002987/0.08247, allocations: 42.05 kB / 337.2 MB, free: 10.06 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002148/0.08463, allocations: 2.184 MB / 339.4 MB, free: 7.738 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.08487, allocations: 0.7397 MB / 340.1 MB, free: 6.973 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.08498, allocations: 37.45 kB / 340.2 MB, free: 6.938 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.659e-05/0.08506, allocations: 59.41 kB / 340.2 MB, free: 6.879 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.08507, allocations: 0 / 340.2 MB, free: 6.879 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9636/1.049, allocations: 4.043 MB / 344.3 MB, free: 2.777 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/12.32, allocations: 11.81 kB / 344.3 MB, free: 2.766 MB / 286.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1.fmu > 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