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.00111/0.00111, allocations: 106.6 kB / 17.73 MB, free: 5.367 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.001134/0.001134, allocations: 187.1 kB / 18.66 MB, free: 4.445 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.24/1.24, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001095/0.001095, allocations: 55.92 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08605/0.08715, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.004364/0.09158, allocations: 1.859 MB / 376.5 MB, free: 3.223 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001506/0.09312, allocations: 0.6326 MB / 377.1 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002425/0.09339, allocations: 3.938 kB / 377.1 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000227/0.09369, allocations: 27.67 kB / 377.2 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002942/0.094, allocations: 39.66 kB / 377.2 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000531/0.09454, allocations: 63.86 kB / 377.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003808/0.09494, allocations: 167.4 kB / 377.4 MB, free: 2.285 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002236/0.09518, allocations: 73.48 kB / 377.5 MB, free: 2.215 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.09537, allocations: 67.7 kB / 377.6 MB, free: 2.148 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002022/0.09559, allocations: 79.56 kB / 377.6 MB, free: 2.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.715e-05/0.09563, allocations: 15.94 kB / 377.6 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.313e-05/0.09573, allocations: 23.98 kB / 377.7 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.622e-05/0.09583, allocations: 43.83 kB / 377.7 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.567e-05/0.09594, allocations: 79.55 kB / 377.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003/0.09625, allocations: 199.4 kB / 378 MB, free: 1.715 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.09626, allocations: 0 / 378 MB, free: 1.715 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.09627, allocations: 0 / 378 MB, free: 1.715 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.09628, allocations: 0 / 378 MB, free: 1.715 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.0009888/0.09727, allocations: 0.4987 MB / 378.5 MB, free: 1.168 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.09732, allocations: 16.03 kB / 378.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.956e-05/0.09738, allocations: 46.73 kB / 378.5 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.425e-05/0.09744, allocations: 24.66 kB / 378.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003031/0.09775, allocations: 239.7 kB / 378.8 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.09777, allocations: 8.656 kB / 378.8 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.73e-05/0.09781, allocations: 16.38 kB / 378.8 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003712/0.09819, allocations: 199.1 kB / 379 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.09821, allocations: 3.938 kB / 379 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.09824, allocations: 4 kB / 379 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.568e-05/0.09827, allocations: 8 kB / 379 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003176/0.09859, allocations: 143.8 kB / 379.2 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1744/0.273, allocations: 0.774 MB / 380 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003094/0.2733, allocations: 164.4 kB / 380.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.2735, allocations: 72.56 kB / 380.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.171e-05/0.2735, allocations: 5.672 kB / 380.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002334/0.2738, allocations: 147.3 kB / 380.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.913e-06/0.2738, allocations: 1.375 kB / 380.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005327/0.2743, allocations: 254.7 kB / 380.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.714e-05/0.2744, allocations: 86.94 kB / 380.7 MB, free: 12.26 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.2745, allocations: 204.4 kB / 380.9 MB, free: 12.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.2746, allocations: 27.73 kB / 380.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.347e-05/0.2746, allocations: 138.3 kB / 381 MB, free: 12.04 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.919e-05/0.2747, allocations: 50.55 kB / 381.1 MB, free: 12.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.159e-05/0.2747, allocations: 42.75 kB / 381.1 MB, free: 12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.27e-05/0.2748, allocations: 331.7 kB / 381.4 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.2749, allocations: 68.77 kB / 381.5 MB, free: 11.69 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001701/0.2751, allocations: 129 kB / 381.6 MB, free: 11.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000313/0.2754, allocations: 204.2 kB / 381.8 MB, free: 11.56 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.2755, allocations: 1.375 kB / 381.8 MB, free: 11.56 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004889/0.2759, allocations: 242.2 kB / 382.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.276, allocations: 6.297 kB / 382.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.276, allocations: 2.031 kB / 382.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.276, allocations: 2.781 kB / 382.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001991/0.2762, allocations: 34.02 kB / 382.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.492e-05/0.2762, allocations: 12.45 kB / 382.1 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.2764, allocations: 30.28 kB / 382.2 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.846e-05/0.2764, allocations: 11.2 kB / 382.2 MB, free: 11.51 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.000127/0.2766, allocations: 144.4 kB / 382.3 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.129e-05/0.2766, allocations: 24.33 kB / 382.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000529/0.2772, allocations: 209.8 kB / 382.5 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.2772, allocations: 6.453 kB / 382.5 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.2772, allocations: 8.5 kB / 382.6 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.2772, allocations: 1.109 kB / 382.6 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000313/0.2775, allocations: 268.2 kB / 382.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2775, allocations: 0.5312 kB / 382.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001168/0.2776, allocations: 24.66 kB / 382.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.2777, allocations: 1.281 kB / 382.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.2777, allocations: 2.031 kB / 382.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.2777, allocations: 2.109 kB / 382.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.2777, allocations: 5.344 kB / 382.9 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003871/0.2781, allocations: 226.6 kB / 383.1 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.235e-05/0.2781, allocations: 101.8 kB / 383.2 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.74e-05/0.2782, allocations: 3.516 kB / 383.2 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.2783, allocations: 17.86 kB / 383.2 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.078e-05/0.2784, allocations: 18.47 kB / 383.2 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.2784, allocations: 5.312 kB / 383.2 MB, free: 10.94 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000119/0.2785, allocations: 150.4 kB / 383.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.42e-07/0.2785, allocations: 192 / 383.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002739/0.2788, allocations: 40.73 kB / 383.4 MB, free: 10.83 MB / 318.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.0005909/0.2794, allocations: 0.7676 MB / 384.2 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003584/0.2798, allocations: 181.2 kB / 384.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.2798, allocations: 0.8125 kB / 384.4 MB, free: 10.13 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001589/0.28, allocations: 81.89 kB / 384.4 MB, free: 10.11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003104/0.2803, allocations: 49.86 kB / 384.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00223/0.2825, allocations: 2.16 MB / 386.6 MB, free: 8.527 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001944/0.2827, allocations: 0.7397 MB / 387.4 MB, free: 7.824 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001303/0.2829, allocations: 36.41 kB / 387.4 MB, free: 7.816 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.187e-05/0.283, allocations: 55.33 kB / 387.5 MB, free: 7.777 MB / 318.1 MB Notification: Performance of SimCode: time 3.51e-07/0.283, allocations: 0 / 387.5 MB, free: 7.777 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02101/0.304, allocations: 4.189 MB / 391.7 MB, free: 7.078 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.207/8.511, allocations: 11.7 kB / 391.7 MB, free: 7.066 MB / 318.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) "" 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.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time