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.001085/0.001085, allocations: 106.5 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.001095/0.001095, allocations: 191 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.295/1.295, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001492/0.001492, allocations: 51.92 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1167, allocations: 46.62 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.004355/0.1211, allocations: 1.855 MB / 376.5 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001746/0.1229, allocations: 0.6325 MB / 377.1 MB, free: 2.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002176/0.1231, allocations: 4 kB / 377.1 MB, free: 2.586 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002174/0.1234, allocations: 27.67 kB / 377.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002489/0.1237, allocations: 35.66 kB / 377.2 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004349/0.1241, allocations: 71.84 kB / 377.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003407/0.1245, allocations: 163.4 kB / 377.4 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000229/0.1247, allocations: 69.5 kB / 377.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001792/0.1249, allocations: 75.69 kB / 377.6 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002017/0.1251, allocations: 83.5 kB / 377.6 MB, free: 2.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.342e-05/0.1252, allocations: 12 kB / 377.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.634e-05/0.1253, allocations: 20 kB / 377.7 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.1254, allocations: 43.83 kB / 377.7 MB, free: 1.996 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.1255, allocations: 83.53 kB / 377.8 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003334/0.1258, allocations: 191.4 kB / 378 MB, free: 1.727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1259, allocations: 0 / 378 MB, free: 1.727 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1259, allocations: 0 / 378 MB, free: 1.727 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.1259, allocations: 0 / 378 MB, free: 1.727 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.001106/0.127, allocations: 0.5065 MB / 378.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/0.1271, allocations: 12.03 kB / 378.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.549e-05/0.1271, allocations: 46.73 kB / 378.5 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.66e-05/0.1272, allocations: 24.66 kB / 378.6 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003571/0.1276, allocations: 235.7 kB / 378.8 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/0.1276, allocations: 12.66 kB / 378.8 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.663e-05/0.1277, allocations: 20.36 kB / 378.8 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004193/0.1281, allocations: 195.1 kB / 379 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.1281, allocations: 3.938 kB / 379 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/0.1281, allocations: 8 kB / 379 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.673e-05/0.1282, allocations: 7.984 kB / 379 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003049/0.1285, allocations: 151.8 kB / 379.2 MB, free: 416 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2049/0.3333, allocations: 0.7607 MB / 379.9 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003321/0.3337, allocations: 164.2 kB / 380.1 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001378/0.3339, allocations: 73.7 kB / 380.2 MB, free: 12.42 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.997e-05/0.3339, allocations: 4.641 kB / 380.2 MB, free: 12.42 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002599/0.3342, allocations: 152.1 kB / 380.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.3342, allocations: 0 / 380.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005859/0.3348, allocations: 253 kB / 380.6 MB, free: 12.33 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.804e-05/0.3349, allocations: 82.42 kB / 380.7 MB, free: 12.23 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/0.3351, allocations: 207.9 kB / 380.9 MB, free: 12.13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/0.3351, allocations: 32.69 kB / 380.9 MB, free: 12.1 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.827e-05/0.3352, allocations: 134.5 kB / 381 MB, free: 12.02 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.676e-05/0.3352, allocations: 51.88 kB / 381.1 MB, free: 11.99 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.284e-05/0.3353, allocations: 40.14 kB / 381.1 MB, free: 11.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.885e-05/0.3354, allocations: 330.9 kB / 381.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/0.3355, allocations: 70.89 kB / 381.5 MB, free: 11.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.3357, allocations: 132.2 kB / 381.6 MB, free: 11.6 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002968/0.336, allocations: 202.8 kB / 381.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.336, allocations: 1.375 kB / 381.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005007/0.3365, allocations: 242.3 kB / 382.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.3365, allocations: 6.109 kB / 382.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.3366, allocations: 1.625 kB / 382.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.404e-05/0.3366, allocations: 4.25 kB / 382.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002036/0.3368, allocations: 35.61 kB / 382.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.383e-05/0.3368, allocations: 7.734 kB / 382.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001627/0.337, allocations: 30.41 kB / 382.2 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.337, allocations: 11.11 kB / 382.2 MB, free: 11.48 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.000119/0.3371, allocations: 145.4 kB / 382.3 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.922e-05/0.3372, allocations: 21.52 kB / 382.3 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005025/0.3377, allocations: 216.5 kB / 382.5 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.3377, allocations: 2.438 kB / 382.5 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.3377, allocations: 7.938 kB / 382.6 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.3377, allocations: 1.844 kB / 382.6 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002846/0.338, allocations: 262.1 kB / 382.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.338, allocations: 4.188 kB / 382.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001214/0.3382, allocations: 21.22 kB / 382.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3382, allocations: 0 / 382.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.3382, allocations: 5.312 kB / 382.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.3382, allocations: 1.891 kB / 382.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.3382, allocations: 4.5 kB / 382.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003586/0.3386, allocations: 234 kB / 383.1 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.993e-05/0.3386, allocations: 93.58 kB / 383.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.855e-05/0.3387, allocations: 6.984 kB / 383.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.3388, allocations: 15.66 kB / 383.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.497e-05/0.3389, allocations: 19.81 kB / 383.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.3389, allocations: 8.078 kB / 383.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000107/0.339, allocations: 147.4 kB / 383.4 MB, free: 10.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.339, allocations: 3.469 kB / 383.4 MB, free: 10.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002541/0.3393, allocations: 46.52 kB / 383.4 MB, free: 10.8 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.0005465/0.3398, allocations: 0.7569 MB / 384.2 MB, free: 10.15 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003699/0.3402, allocations: 189 kB / 384.4 MB, free: 10.1 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3402, allocations: 3.641 kB / 384.4 MB, free: 10.1 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001507/0.3404, allocations: 81.5 kB / 384.4 MB, free: 10.08 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000322/0.3407, allocations: 46.89 kB / 384.5 MB, free: 10.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002183/0.3429, allocations: 2.157 MB / 386.6 MB, free: 8.504 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001626/0.3431, allocations: 0.7391 MB / 387.4 MB, free: 7.801 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001125/0.3432, allocations: 37.84 kB / 387.4 MB, free: 7.793 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.78e-05/0.3433, allocations: 58.05 kB / 387.5 MB, free: 7.75 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3433, allocations: 0 / 387.5 MB, free: 7.75 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02424/0.3675, allocations: 4.178 MB / 391.6 MB, free: 7.059 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.019/8.387, allocations: 16.95 kB / 391.7 MB, free: 7.043 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