Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001335/0.001335, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001895/0.001895, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001249, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3095, allocations: 50.54 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003504/0.3131, allocations: 1.882 MB / 410.6 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001523/0.3146, allocations: 0.6466 MB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002169/0.3149, allocations: 3.938 kB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001765/0.3151, allocations: 27.72 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000259/0.3154, allocations: 35.66 kB / 411.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003947/0.3158, allocations: 79.78 kB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003162/0.3161, allocations: 163.4 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000212/0.3163, allocations: 68.25 kB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002146/0.3166, allocations: 75.64 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001994/0.3168, allocations: 95.53 kB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.659e-05/0.3168, allocations: 12 kB / 411.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.707e-05/0.3169, allocations: 24 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.421e-05/0.317, allocations: 43.84 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.3171, allocations: 83.47 kB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003218/0.3175, allocations: 192.9 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.3175, allocations: 0 / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3175, allocations: 0 / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.946e-06/0.3175, allocations: 0 / 412.2 MB, free: 14.09 MB / 334.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.001105/0.3186, allocations: 0.5105 MB / 412.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.3187, allocations: 8.031 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.234e-05/0.3187, allocations: 54.73 kB / 412.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001789/0.3189, allocations: 32.64 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003157/0.3192, allocations: 227.9 kB / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.3193, allocations: 24.62 kB / 413 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.848e-05/0.3193, allocations: 12.38 kB / 413 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003639/0.3197, allocations: 192 kB / 413.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.3197, allocations: 7.938 kB / 413.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.3198, allocations: 4 kB / 413.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.269e-05/0.3198, allocations: 7.984 kB / 413.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003015/0.3201, allocations: 151.8 kB / 413.4 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.3212, allocations: 0.7701 MB / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003219/0.3215, allocations: 165 kB / 414.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.3217, allocations: 77.8 kB / 414.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.556e-05/0.3218, allocations: 7.938 kB / 414.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002498/0.322, allocations: 148.9 kB / 414.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.322, allocations: 0 / 414.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005796/0.3226, allocations: 250.1 kB / 414.8 MB, free: 11.24 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.559e-05/0.3227, allocations: 85.05 kB / 414.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000229/0.3229, allocations: 215.1 kB / 415.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.941e-05/0.323, allocations: 33.69 kB / 415.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.3231, allocations: 136.1 kB / 415.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.347e-05/0.3232, allocations: 47.44 kB / 415.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.465e-05/0.3233, allocations: 41.7 kB / 415.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002239/0.3235, allocations: 334.8 kB / 415.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001717/0.3237, allocations: 67.95 kB / 415.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/0.3239, allocations: 130.8 kB / 415.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003501/0.3242, allocations: 206.7 kB / 416.1 MB, free: 9.867 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3243, allocations: 0 / 416.1 MB, free: 9.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004823/0.3247, allocations: 241.3 kB / 416.3 MB, free: 9.625 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.3248, allocations: 4 kB / 416.3 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.3248, allocations: 4 kB / 416.3 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.038e-05/0.3248, allocations: 4 kB / 416.3 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.325, allocations: 35.91 kB / 416.3 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.325, allocations: 0 / 416.3 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001626/0.3252, allocations: 31.83 kB / 416.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.686e-05/0.3252, allocations: 7.984 kB / 416.4 MB, free: 9.539 MB / 334.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.0001678/0.3254, allocations: 153.7 kB / 416.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.662e-05/0.3254, allocations: 15.92 kB / 416.5 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000457/0.3259, allocations: 218.8 kB / 416.8 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3259, allocations: 4.094 kB / 416.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.3259, allocations: 3.938 kB / 416.8 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.3259, allocations: 3.984 kB / 416.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003064/0.3263, allocations: 277.3 kB / 417 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.3263, allocations: 0 / 417 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.3264, allocations: 27.92 kB / 417.1 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.3264, allocations: 0 / 417.1 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.3264, allocations: 7.984 kB / 417.1 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.3264, allocations: 0 / 417.1 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3264, allocations: 0 / 417.1 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003773/0.3268, allocations: 233.6 kB / 417.3 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.849e-05/0.3269, allocations: 88.92 kB / 417.4 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.539e-05/0.3269, allocations: 0 / 417.4 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001318/0.3271, allocations: 23.97 kB / 417.4 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.329e-05/0.3271, allocations: 15.92 kB / 417.4 MB, free: 8.383 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.3271, allocations: 4 kB / 417.4 MB, free: 8.379 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001172/0.3273, allocations: 144.7 kB / 417.6 MB, free: 8.238 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3273, allocations: 0 / 417.6 MB, free: 8.238 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002943/0.3276, allocations: 47.84 kB / 417.6 MB, free: 8.191 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.000667/0.3283, allocations: 0.7636 MB / 418.4 MB, free: 7.395 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000371/0.3286, allocations: 183.4 kB / 418.6 MB, free: 7.219 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3286, allocations: 0 / 418.6 MB, free: 7.219 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000156/0.3288, allocations: 79.89 kB / 418.6 MB, free: 7.141 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003239/0.3291, allocations: 47.61 kB / 418.7 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002712/0.3319, allocations: 2.186 MB / 420.9 MB, free: 4.773 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000349/0.3322, allocations: 0.7358 MB / 421.6 MB, free: 4.012 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001294/0.3324, allocations: 37.53 kB / 421.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.848e-05/0.3325, allocations: 59.52 kB / 421.7 MB, free: 3.922 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3325, allocations: 3.938 kB / 421.7 MB, free: 3.918 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0222/0.3547, allocations: 4.202 MB / 425.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.756/8.111, allocations: 8.609 kB / 425.9 MB, free: 15.78 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time