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.001352/0.001352, allocations: 118.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00129/0.00129, allocations: 201.2 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.401/1.401, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 59.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2559, allocations: 50.54 MB / 408.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002783/0.2587, allocations: 1.886 MB / 410.6 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.2597, allocations: 0.6466 MB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.2598, allocations: 7.938 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.26, allocations: 19.73 kB / 411.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001458/0.2602, allocations: 35.66 kB / 411.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002824/0.2604, allocations: 79.78 kB / 411.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002203/0.2607, allocations: 171.4 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.2609, allocations: 72.19 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001758/0.261, allocations: 75.7 kB / 411.7 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000137/0.2612, allocations: 83.55 kB / 411.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.514e-05/0.2612, allocations: 12 kB / 411.8 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.873e-05/0.2613, allocations: 31.98 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.733e-05/0.2614, allocations: 39.84 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.324e-05/0.2615, allocations: 79.48 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002501/0.2618, allocations: 196.9 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2618, allocations: 0 / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2618, allocations: 0 / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.2618, allocations: 0 / 412.2 MB, free: 14.07 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.0009157/0.2627, allocations: 0.5105 MB / 412.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.2628, allocations: 12.03 kB / 412.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.065e-05/0.2628, allocations: 46.73 kB / 412.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.263, allocations: 32.64 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002809/0.2633, allocations: 243.8 kB / 413 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/0.2633, allocations: 12.59 kB / 413 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.852e-05/0.2633, allocations: 16.38 kB / 413 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003449/0.2637, allocations: 199.9 kB / 413.2 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.2637, allocations: 0 / 413.2 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/0.2637, allocations: 4 kB / 413.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.801e-05/0.2637, allocations: 8 kB / 413.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002895/0.264, allocations: 147.8 kB / 413.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.2651, allocations: 0.774 MB / 414.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002997/0.2654, allocations: 161 kB / 414.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.2655, allocations: 77.81 kB / 414.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/0.2656, allocations: 4 kB / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002344/0.2658, allocations: 152 kB / 414.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.2658, allocations: 0 / 414.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005994/0.2664, allocations: 253.5 kB / 414.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.272e-05/0.2665, allocations: 85.11 kB / 414.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001821/0.2667, allocations: 211.1 kB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.2667, allocations: 29.7 kB / 415.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.702e-05/0.2668, allocations: 140.1 kB / 415.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.423e-05/0.2669, allocations: 47.44 kB / 415.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.74e-05/0.2669, allocations: 41.7 kB / 415.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.2671, allocations: 334.8 kB / 415.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.2672, allocations: 75.95 kB / 415.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.2674, allocations: 121.9 kB / 415.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003186/0.2677, allocations: 202.7 kB / 416 MB, free: 9.863 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.2677, allocations: 0 / 416 MB, free: 9.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004239/0.2682, allocations: 245.8 kB / 416.3 MB, free: 9.617 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.2682, allocations: 11.06 kB / 416.3 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2682, allocations: 3.938 kB / 416.3 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.2682, allocations: 7.984 kB / 416.3 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001615/0.2684, allocations: 31.92 kB / 416.3 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.2684, allocations: 8 kB / 416.3 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001647/0.2686, allocations: 31.81 kB / 416.4 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.2686, allocations: 8.266 kB / 416.4 MB, free: 9.52 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.000136/0.2688, allocations: 153.7 kB / 416.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.847e-05/0.2688, allocations: 19.75 kB / 416.6 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004496/0.2692, allocations: 214.9 kB / 416.8 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2693, allocations: 4 kB / 416.8 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.2693, allocations: 0 / 416.8 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.2693, allocations: 0 / 416.8 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002492/0.2695, allocations: 285.3 kB / 417.1 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2695, allocations: 0 / 417.1 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.2697, allocations: 23.92 kB / 417.1 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.2697, allocations: 0 / 417.1 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.2697, allocations: 4 kB / 417.1 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.2697, allocations: 0 / 417.1 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.2697, allocations: 0 / 417.1 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003697/0.2701, allocations: 233.6 kB / 417.3 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.216e-05/0.2701, allocations: 92.91 kB / 417.4 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.346e-05/0.2702, allocations: 0 / 417.4 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.2703, allocations: 19.98 kB / 417.4 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.813e-05/0.2704, allocations: 23.91 kB / 417.4 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.2704, allocations: 0 / 417.4 MB, free: 8.363 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001098/0.2705, allocations: 148.7 kB / 417.6 MB, free: 8.219 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2705, allocations: 4 kB / 417.6 MB, free: 8.215 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002488/0.2708, allocations: 39.84 kB / 417.6 MB, free: 8.176 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.0006886/0.2715, allocations: 0.7637 MB / 418.4 MB, free: 7.379 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003806/0.2719, allocations: 179.8 kB / 418.6 MB, free: 7.203 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2719, allocations: 0 / 418.6 MB, free: 7.203 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001639/0.272, allocations: 83.89 kB / 418.6 MB, free: 7.121 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/0.2724, allocations: 40.09 kB / 418.7 MB, free: 7.082 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002616/0.275, allocations: 2.183 MB / 420.9 MB, free: 4.762 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003377/0.2753, allocations: 0.7397 MB / 421.6 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000118/0.2755, allocations: 37.61 kB / 421.6 MB, free: 3.961 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.2756, allocations: 63.36 kB / 421.7 MB, free: 3.902 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2756, allocations: 3.938 kB / 421.7 MB, free: 3.898 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02041/0.296, allocations: 4.197 MB / 425.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.684/7.98, allocations: 12.55 kB / 425.9 MB, free: 15.77 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