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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008171/0.0008171, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003646/0.003646, allocations: 164.6 kB / 24.69 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8275/0.8275, allocations: 158.6 MB / 186.5 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.874e-05/2.037e-05, allocations: 2.281 kB / 298.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002933/0.002953, allocations: 1.813 MB / 300.2 MB, free: 1.695 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001077/0.00403, allocations: 0.593 MB / 300.8 MB, free: 1.094 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.004135, allocations: 7.938 kB / 300.8 MB, free: 1.086 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001351/0.004271, allocations: 31.66 kB / 300.9 MB, free: 1.055 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001546/0.004425, allocations: 35.66 kB / 300.9 MB, free: 1.02 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003063/0.004731, allocations: 71.73 kB / 301 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002217/0.004953, allocations: 171.3 kB / 301.1 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.005113, allocations: 41.94 kB / 301.2 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/0.005277, allocations: 99.77 kB / 301.3 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.005413, allocations: 55.8 kB / 301.3 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.895e-05/0.005442, allocations: 12 kB / 301.4 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.382e-05/0.005516, allocations: 27.98 kB / 301.4 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.605e-05/0.005592, allocations: 43.83 kB / 301.4 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.322e-05/0.005655, allocations: 51.84 kB / 301.5 MB, free: 468 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002609/0.005916, allocations: 191.2 kB / 301.7 MB, free: 276 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.005919, allocations: 0 / 301.7 MB, free: 276 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.00592, allocations: 0 / 301.7 MB, free: 276 kB / 282.7 MB Notification: Performance of Transformations before backend: time 4.429e-06/0.005925, allocations: 0 / 301.7 MB, free: 276 kB / 282.7 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.1165/0.1225, allocations: 442.7 kB / 302.1 MB, free: 13.86 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.1225, allocations: 13.55 kB / 302.1 MB, free: 13.86 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.742e-05/0.1225, allocations: 49.62 kB / 302.2 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.841e-05/0.1226, allocations: 25.45 kB / 302.2 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001968/0.1228, allocations: 180.1 kB / 302.4 MB, free: 13.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.1228, allocations: 15.42 kB / 302.4 MB, free: 13.66 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.772e-05/0.1228, allocations: 14 kB / 302.4 MB, free: 13.66 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002665/0.1231, allocations: 197.2 kB / 302.6 MB, free: 13.6 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.1231, allocations: 192 / 302.6 MB, free: 13.6 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.1231, allocations: 6.688 kB / 302.6 MB, free: 13.6 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.328e-05/0.1231, allocations: 9.734 kB / 302.6 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001996/0.1233, allocations: 143.1 kB / 302.7 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006476/0.124, allocations: 0.717 MB / 303.4 MB, free: 13.1 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002006/0.1242, allocations: 149.8 kB / 303.6 MB, free: 13.05 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.469e-05/0.1243, allocations: 76.95 kB / 303.7 MB, free: 13.04 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.422e-05/0.1243, allocations: 7.938 kB / 303.7 MB, free: 13.04 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001619/0.1245, allocations: 148.3 kB / 303.8 MB, free: 12.97 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.1245, allocations: 3.562 kB / 303.8 MB, free: 12.97 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003705/0.1248, allocations: 258.8 kB / 304.1 MB, free: 12.93 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.769e-05/0.1248, allocations: 82.86 kB / 304.2 MB, free: 12.84 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.125, allocations: 203.1 kB / 304.4 MB, free: 12.73 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.243e-05/0.125, allocations: 26.77 kB / 304.4 MB, free: 12.7 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.395e-05/0.125, allocations: 142.9 kB / 304.5 MB, free: 12.61 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.107e-05/0.1251, allocations: 48.56 kB / 304.6 MB, free: 12.58 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.16e-05/0.1251, allocations: 45.06 kB / 304.6 MB, free: 12.57 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.745e-05/0.1252, allocations: 332.5 kB / 304.9 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.1253, allocations: 69.8 kB / 305 MB, free: 12.25 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.1254, allocations: 125.3 kB / 305.1 MB, free: 12.19 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001936/0.1256, allocations: 205.1 kB / 305.3 MB, free: 12.13 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1256, allocations: 0 / 305.3 MB, free: 12.13 MB / 282.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002554/0.1258, allocations: 251.4 kB / 305.6 MB, free: 12.08 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.1258, allocations: 5.312 kB / 305.6 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.1259, allocations: 2.312 kB / 305.6 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.1259, allocations: 4.062 kB / 305.6 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.126, allocations: 34.3 kB / 305.6 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.126, allocations: 3 kB / 305.6 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.919e-05/0.126, allocations: 32.59 kB / 305.7 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.1261, allocations: 7.859 kB / 305.7 MB, free: 12.08 MB / 282.7 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 7.357e-05/0.1261, allocations: 144.4 kB / 305.8 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.617e-05/0.1262, allocations: 24.25 kB / 305.8 MB, free: 11.95 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000266/0.1264, allocations: 216.1 kB / 306 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.1264, allocations: 1.375 kB / 306 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1264, allocations: 2.078 kB / 306 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1264, allocations: 0.7031 kB / 306 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001397/0.1266, allocations: 227.6 kB / 306.3 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1266, allocations: 1.844 kB / 306.3 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.502e-05/0.1266, allocations: 31.02 kB / 306.3 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1266, allocations: 2.188 kB / 306.3 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.1266, allocations: 7.172 kB / 306.3 MB, free: 11.74 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.1266, allocations: 2.703 kB / 306.3 MB, free: 11.74 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1266, allocations: 0.9688 kB / 306.3 MB, free: 11.74 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001994/0.1268, allocations: 223 kB / 306.5 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.675e-05/0.1269, allocations: 26.44 kB / 306.6 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.729e-05/0.1269, allocations: 9.656 kB / 306.6 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.835e-05/0.1269, allocations: 19.67 kB / 306.6 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.879e-05/0.127, allocations: 17.7 kB / 306.6 MB, free: 11.6 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.127, allocations: 4.609 kB / 306.6 MB, free: 11.6 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.575e-05/0.1271, allocations: 149.3 kB / 306.7 MB, free: 11.5 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1271, allocations: 0 / 306.7 MB, free: 11.5 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001752/0.1272, allocations: 38.83 kB / 306.8 MB, free: 11.5 MB / 282.7 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.0003598/0.1276, allocations: 0.7652 MB / 307.6 MB, free: 10.84 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002413/0.1278, allocations: 165.2 kB / 307.7 MB, free: 10.81 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1278, allocations: 1.094 kB / 307.7 MB, free: 10.81 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.1279, allocations: 83.17 kB / 307.8 MB, free: 10.79 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002192/0.1282, allocations: 44.8 kB / 307.8 MB, free: 10.78 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001551/0.1297, allocations: 2.192 MB / 310 MB, free: 9.184 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.305e-05/0.1298, allocations: 121.1 kB / 310.1 MB, free: 9.109 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.924e-05/0.1299, allocations: 37.38 kB / 310.2 MB, free: 9.105 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.376e-05/0.13, allocations: 61.27 kB / 310.2 MB, free: 9.062 MB / 282.7 MB Notification: Performance of SimCode: time 6.41e-07/0.13, allocations: 0 / 310.2 MB, free: 9.062 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01778/0.1478, allocations: 4.947 MB / 315.2 MB, free: 7.719 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.794/6.941, allocations: 17.3 kB / 315.2 MB, free: 7.703 MB / 282.7 MB " [Timeout remaining time 653] (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 --stepSize=0.00198965 --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) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.490543208085]