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.001651/0.001651, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.002247/0.002248, allocations: 196 kB / 18 MB, free: 5.105 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.609/1.609, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001767/0.001767, allocations: 47.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.434/0.4358, allocations: 49.45 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003473/0.4393, allocations: 1.857 MB / 402.1 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.4405, allocations: 0.5868 MB / 402.7 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.4407, allocations: 4 kB / 402.7 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.4409, allocations: 23.67 kB / 402.7 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001644/0.441, allocations: 39.66 kB / 402.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00031/0.4414, allocations: 67.86 kB / 402.8 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002514/0.4416, allocations: 167.4 kB / 403 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000193/0.4418, allocations: 65.64 kB / 403 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.442, allocations: 75.64 kB / 403.1 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.4421, allocations: 71.62 kB / 403.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.888e-05/0.4421, allocations: 12 kB / 403.2 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.336e-05/0.4422, allocations: 23.98 kB / 403.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.816e-05/0.4423, allocations: 43.83 kB / 403.3 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.538e-05/0.4424, allocations: 79.48 kB / 403.3 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002668/0.4427, allocations: 189 kB / 403.5 MB, free: 5.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.4427, allocations: 4 kB / 403.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4427, allocations: 0 / 403.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.732e-06/0.4427, allocations: 0 / 403.5 MB, free: 5.516 MB / 318.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.0009561/0.4437, allocations: 0.5066 MB / 404 MB, free: 4.957 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.4437, allocations: 12.03 kB / 404 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.865e-05/0.4438, allocations: 46.73 kB / 404.1 MB, free: 4.891 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.399e-05/0.4439, allocations: 28.66 kB / 404.1 MB, free: 4.863 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003121/0.4442, allocations: 247.6 kB / 404.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/0.4442, allocations: 12.41 kB / 404.4 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.4443, allocations: 16 kB / 404.4 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003612/0.4446, allocations: 195.8 kB / 404.6 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.4446, allocations: 0 / 404.6 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.4447, allocations: 8 kB / 404.6 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.353e-05/0.4447, allocations: 8 kB / 404.6 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000296/0.445, allocations: 143.8 kB / 404.7 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001212/0.4462, allocations: 0.7739 MB / 405.5 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003322/0.4466, allocations: 161.1 kB / 405.7 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.4467, allocations: 81.8 kB / 405.7 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.323e-05/0.4468, allocations: 8.078 kB / 405.7 MB, free: 3.086 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002814/0.4471, allocations: 137 kB / 405.9 MB, free: 2.934 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.754e-06/0.4471, allocations: 4 kB / 405.9 MB, free: 2.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.000657/0.4478, allocations: 257.3 kB / 406.1 MB, free: 2.672 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.962e-05/0.4479, allocations: 77.11 kB / 406.2 MB, free: 2.578 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002501/0.4481, allocations: 210.9 kB / 406.4 MB, free: 2.359 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.4482, allocations: 29.7 kB / 406.4 MB, free: 2.324 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.4483, allocations: 144.1 kB / 406.6 MB, free: 2.18 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.602e-05/0.4483, allocations: 43.38 kB / 406.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.116e-05/0.4484, allocations: 41.7 kB / 406.7 MB, free: 2.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.4486, allocations: 338.8 kB / 407 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.4488, allocations: 68.06 kB / 407.1 MB, free: 1.684 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002022/0.449, allocations: 138.3 kB / 407.2 MB, free: 1.527 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003668/0.4494, allocations: 207.3 kB / 407.4 MB, free: 1.301 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.4494, allocations: 0 / 407.4 MB, free: 1.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004368/0.4498, allocations: 245.2 kB / 407.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.4499, allocations: 4 kB / 407.6 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.4499, allocations: 4 kB / 407.7 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.4499, allocations: 4 kB / 407.7 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001853/0.4501, allocations: 35.91 kB / 407.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.4501, allocations: 0 / 407.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001635/0.4503, allocations: 40 kB / 407.7 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.4503, allocations: 7.938 kB / 407.7 MB, free: 0.9609 MB / 318.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.0001745/0.4505, allocations: 142.3 kB / 407.9 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.289e-05/0.4505, allocations: 19.72 kB / 407.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004556/0.451, allocations: 210.9 kB / 408.1 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.451, allocations: 7.984 kB / 408.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.451, allocations: 0 / 408.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.321e-06/0.4511, allocations: 4 kB / 408.1 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003224/0.4514, allocations: 273.4 kB / 408.4 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.4514, allocations: 0 / 408.4 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.4515, allocations: 23.98 kB / 408.4 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.4515, allocations: 0 / 408.4 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.4515, allocations: 3.984 kB / 408.4 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.4515, allocations: 4 kB / 408.4 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4516, allocations: 0 / 408.4 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004563/0.452, allocations: 236.6 kB / 408.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.265e-05/0.4521, allocations: 96.83 kB / 408.7 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.46e-05/0.4521, allocations: 0 / 408.7 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.4523, allocations: 19.97 kB / 408.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.081e-05/0.4523, allocations: 11.98 kB / 408.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.4523, allocations: 11.94 kB / 408.8 MB, free: 15.81 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001256/0.4525, allocations: 148.6 kB / 408.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4525, allocations: 0 / 408.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002584/0.4527, allocations: 35.94 kB / 409 MB, free: 15.63 MB / 334.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.0007311/0.4535, allocations: 0.7691 MB / 409.7 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003918/0.4539, allocations: 171.8 kB / 409.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4539, allocations: 3.938 kB / 409.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.4541, allocations: 80.17 kB / 410 MB, free: 14.58 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/0.4545, allocations: 52.84 kB / 410 MB, free: 14.53 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002942/0.4574, allocations: 2.177 MB / 412.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004324/0.4579, allocations: 0.7358 MB / 412.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001364/0.458, allocations: 37.52 kB / 413 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.4582, allocations: 51.42 kB / 413 MB, free: 11.37 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.4582, allocations: 0 / 413 MB, free: 11.37 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02478/0.4829, allocations: 4.187 MB / 417.2 MB, free: 7.273 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.39, allocations: 11.88 kB / 417.2 MB, free: 7.27 MB / 334.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) "" Variables in the reference:time,multiSwitch.u[1],multiSwitch.u[2] Variables in the result:add.k[1],add.k[2],add.nu,add.significantDigits,add.u[1],add.u[2],add.y,booleanPulse1.period,booleanPulse1.startTime,booleanPulse1.width,booleanPulse1.y,booleanPulse2.period,booleanPulse2.startTime,booleanPulse2.width,booleanPulse2.y,integerConstant.k,integerConstant.y,integerStep.height,integerStep.offset,integerStep.startTime,integerStep.y,linearDependency1.k1,linearDependency1.k2,linearDependency1.u1,linearDependency1.u2,linearDependency1.y,linearDependency1.y0,minMax.nu,minMax.u[1],minMax.u[2],minMax.yMax,minMax.yMin,multiSwitch.expr[1],multiSwitch.expr[2],multiSwitch.nu,multiSwitch.precision,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.y,multiSwitch.y_default,product.nu,product.significantDigits,product.u[1],product.u[2],product.y,showValue.number,showValue.numberPort,showValue.showNumber,showValue.significantDigits,showValue.use_numberPort,showValue1.number,showValue1.numberPort,showValue1.showNumber,showValue1.significantDigits,showValue1.use_numberPort,showValue3.number,showValue3.showNumber,showValue3.significantDigits,showValue3.use_numberPort,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time