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.001717/0.001717, allocations: 105.2 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.001879/0.001879, allocations: 195 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 2.262/2.262, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001592, allocations: 47.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4835/0.4851, allocations: 49.44 MB / 400.2 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.004876/0.4901, allocations: 1.868 MB / 402.1 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001682/0.4918, allocations: 0.5804 MB / 402.7 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.492, allocations: 4 kB / 402.7 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000235/0.4922, allocations: 27.67 kB / 402.7 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002366/0.4925, allocations: 39.64 kB / 402.7 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004428/0.493, allocations: 63.88 kB / 402.8 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003494/0.4933, allocations: 171.4 kB / 403 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002744/0.4936, allocations: 65.59 kB / 403 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000164/0.4938, allocations: 75.69 kB / 403.1 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002064/0.494, allocations: 71.62 kB / 403.2 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.015e-05/0.4941, allocations: 19.94 kB / 403.2 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001016/0.4942, allocations: 20 kB / 403.2 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000124/0.4943, allocations: 39.84 kB / 403.3 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001262/0.4944, allocations: 87.45 kB / 403.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003627/0.4948, allocations: 181 kB / 403.5 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.4948, allocations: 0 / 403.5 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.4949, allocations: 4 kB / 403.5 MB, free: 5.641 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.4949, allocations: 0 / 403.5 MB, free: 5.641 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.001346/0.4962, allocations: 0.5066 MB / 404 MB, free: 5.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.016e-05/0.4963, allocations: 12.03 kB / 404 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.1e-05/0.4964, allocations: 42.75 kB / 404.1 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.291e-05/0.4965, allocations: 28.64 kB / 404.1 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004143/0.4969, allocations: 243.7 kB / 404.4 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.74e-05/0.4969, allocations: 12.41 kB / 404.4 MB, free: 4.703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.887e-05/0.497, allocations: 20 kB / 404.4 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004921/0.4975, allocations: 187.8 kB / 404.6 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.4975, allocations: 3.938 kB / 404.6 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.712e-05/0.4976, allocations: 7.984 kB / 404.6 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.123e-05/0.4976, allocations: 16 kB / 404.6 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004127/0.498, allocations: 139.9 kB / 404.7 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.4995, allocations: 0.7739 MB / 405.5 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004314/0.5, allocations: 161 kB / 405.7 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002051/0.5002, allocations: 73.81 kB / 405.7 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.709e-05/0.5002, allocations: 7.984 kB / 405.7 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003553/0.5006, allocations: 152.5 kB / 405.9 MB, free: 3.059 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.5006, allocations: 0 / 405.9 MB, free: 3.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.000804/0.5014, allocations: 249.5 kB / 406.1 MB, free: 2.809 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.33e-05/0.5015, allocations: 89.05 kB / 406.2 MB, free: 2.703 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002825/0.5018, allocations: 202.9 kB / 406.4 MB, free: 2.492 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.296e-05/0.5019, allocations: 33.7 kB / 406.5 MB, free: 2.453 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000156/0.5021, allocations: 148.1 kB / 406.6 MB, free: 2.305 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.462e-05/0.5021, allocations: 43.36 kB / 406.6 MB, free: 2.262 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.5022, allocations: 41.7 kB / 406.7 MB, free: 2.215 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.5024, allocations: 334.8 kB / 407 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002108/0.5027, allocations: 75.95 kB / 407.1 MB, free: 1.805 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000257/0.5029, allocations: 118.9 kB / 407.2 MB, free: 1.664 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004631/0.5034, allocations: 206.6 kB / 407.4 MB, free: 1.438 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.5034, allocations: 0 / 407.4 MB, free: 1.438 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005931/0.504, allocations: 245.8 kB / 407.6 MB, free: 1.191 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.5041, allocations: 4 kB / 407.6 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.5041, allocations: 4 kB / 407.6 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.273e-05/0.5041, allocations: 4 kB / 407.7 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002386/0.5043, allocations: 31.92 kB / 407.7 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.597e-05/0.5044, allocations: 8.062 kB / 407.7 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002332/0.5046, allocations: 32 kB / 407.7 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.385e-05/0.5047, allocations: 15.94 kB / 407.7 MB, free: 1.094 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.0002023/0.5049, allocations: 142.3 kB / 407.9 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.986e-05/0.5049, allocations: 23.72 kB / 407.9 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006015/0.5055, allocations: 206.9 kB / 408.1 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-06/0.5056, allocations: 4 kB / 408.1 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.5056, allocations: 0 / 408.1 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.5056, allocations: 0 / 408.1 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000387/0.506, allocations: 281.5 kB / 408.4 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.506, allocations: 3.938 kB / 408.4 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001554/0.5062, allocations: 23.92 kB / 408.4 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.5062, allocations: 0 / 408.4 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.5062, allocations: 0 / 408.4 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.548e-06/0.5062, allocations: 4 kB / 408.4 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.5062, allocations: 0 / 408.4 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000529/0.5068, allocations: 233.6 kB / 408.6 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.5069, allocations: 96.88 kB / 408.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.843e-05/0.5069, allocations: 3.938 kB / 408.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001888/0.5071, allocations: 15.98 kB / 408.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.507e-05/0.5072, allocations: 19.97 kB / 408.8 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.5073, allocations: 7.938 kB / 408.8 MB, free: 15.94 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001732/0.5074, allocations: 144.5 kB / 408.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5074, allocations: 4 kB / 408.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004545/0.5079, allocations: 39.94 kB / 409 MB, free: 15.75 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.0009563/0.5089, allocations: 0.7614 MB / 409.7 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005302/0.5094, allocations: 179.8 kB / 409.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.5094, allocations: 0 / 409.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002396/0.5097, allocations: 83.83 kB / 410 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004994/0.5102, allocations: 48.03 kB / 410 MB, free: 14.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003662/0.5139, allocations: 2.174 MB / 412.2 MB, free: 12.35 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.5143, allocations: 0.7397 MB / 412.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001704/0.5145, allocations: 33.53 kB / 413 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/0.5146, allocations: 55.41 kB / 413 MB, free: 11.5 MB / 334.1 MB Notification: Performance of SimCode: time 6.32e-07/0.5146, allocations: 0 / 413 MB, free: 11.5 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03547/0.5501, allocations: 4.184 MB / 417.2 MB, free: 7.406 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.56, allocations: 1.031 kB / 417.2 MB, free: 7.406 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