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.0008327/0.0008327, allocations: 83.64 kB / 21.43 MB, free: 3.137 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.005157/0.005157, allocations: 164 kB / 24.7 MB, free: 9.414 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.8826/0.8826, allocations: 158.6 MB / 186.5 MB, free: 3.035 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.422e-06/1.422e-06, allocations: 0 / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.429e-05/2.571e-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.002369/0.002395, allocations: 1.802 MB / 300.2 MB, free: 1.707 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009908/0.003386, allocations: 0.5968 MB / 300.8 MB, free: 1.102 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.003499, allocations: 7.938 kB / 300.8 MB, free: 1.094 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.003632, allocations: 27.66 kB / 300.9 MB, free: 1.066 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001492/0.003781, allocations: 43.59 kB / 300.9 MB, free: 1.023 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.004075, allocations: 67.8 kB / 301 MB, free: 0.957 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001971/0.004272, allocations: 175.3 kB / 301.1 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.00441, allocations: 33.95 kB / 301.2 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.004542, allocations: 99.72 kB / 301.3 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001228/0.004664, allocations: 67.77 kB / 301.3 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.602e-05/0.00469, allocations: 12 kB / 301.3 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.822e-05/0.004759, allocations: 20 kB / 301.4 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.323e-05/0.004822, allocations: 43.83 kB / 301.4 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.196e-05/0.004874, allocations: 51.84 kB / 301.5 MB, free: 476 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002092/0.005083, allocations: 199.2 kB / 301.7 MB, free: 276 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.005086, allocations: 0 / 301.7 MB, free: 276 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.005087, allocations: 0 / 301.7 MB, free: 276 kB / 282.7 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.005093, 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.1311/0.1361, allocations: 439.9 kB / 302.1 MB, free: 13.84 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.1362, allocations: 13.95 kB / 302.1 MB, free: 13.84 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.563e-05/0.1362, allocations: 47.28 kB / 302.1 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.93e-05/0.1363, allocations: 24.73 kB / 302.2 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002182/0.1365, allocations: 173.6 kB / 302.3 MB, free: 13.64 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.566e-05/0.1365, allocations: 14.75 kB / 302.4 MB, free: 13.64 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.881e-05/0.1365, allocations: 18.27 kB / 302.4 MB, free: 13.64 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002781/0.1368, allocations: 197.5 kB / 302.6 MB, free: 13.58 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.1368, allocations: 2.688 kB / 302.6 MB, free: 13.58 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.1368, allocations: 5.781 kB / 302.6 MB, free: 13.58 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/0.1368, allocations: 9.812 kB / 302.6 MB, free: 13.57 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002039/0.1371, allocations: 146.3 kB / 302.7 MB, free: 13.57 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007114/0.1378, allocations: 0.7178 MB / 303.4 MB, free: 13.08 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002152/0.138, allocations: 155.9 kB / 303.6 MB, free: 13.04 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.211e-05/0.1381, allocations: 73.27 kB / 303.7 MB, free: 13.02 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.81e-05/0.1381, allocations: 3 kB / 303.7 MB, free: 13.02 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001765/0.1383, allocations: 153.9 kB / 303.8 MB, free: 12.95 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.1383, allocations: 4.688 kB / 303.8 MB, free: 12.95 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003921/0.1387, allocations: 254.1 kB / 304.1 MB, free: 12.91 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.1387, allocations: 80.27 kB / 304.2 MB, free: 12.82 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.1389, allocations: 206.3 kB / 304.4 MB, free: 12.71 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/0.1389, allocations: 29.73 kB / 304.4 MB, free: 12.68 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.8e-05/0.1389, allocations: 143 kB / 304.5 MB, free: 12.59 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.392e-05/0.1389, allocations: 47.97 kB / 304.6 MB, free: 12.56 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.487e-05/0.139, allocations: 44.97 kB / 304.6 MB, free: 12.55 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.012e-05/0.139, allocations: 330.8 kB / 304.9 MB, free: 12.23 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.1391, allocations: 68.2 kB / 305 MB, free: 12.23 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001037/0.1392, allocations: 126.2 kB / 305.1 MB, free: 12.17 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002012/0.1394, allocations: 202.2 kB / 305.3 MB, free: 12.11 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1395, allocations: 0 / 305.3 MB, free: 12.11 MB / 282.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002679/0.1397, allocations: 254.3 kB / 305.6 MB, free: 12.06 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.1397, allocations: 5.812 kB / 305.6 MB, free: 12.06 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.1397, allocations: 3.219 kB / 305.6 MB, free: 12.06 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.1398, allocations: 3.047 kB / 305.6 MB, free: 12.06 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.1399, allocations: 33.78 kB / 305.6 MB, free: 12.06 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.1399, allocations: 6.094 kB / 305.6 MB, free: 12.06 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.892e-05/0.14, allocations: 31.77 kB / 305.7 MB, free: 12.06 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.14, allocations: 13.19 kB / 305.7 MB, free: 12.06 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 8.096e-05/0.1401, allocations: 140.5 kB / 305.8 MB, free: 11.94 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.898e-05/0.1401, allocations: 21.61 kB / 305.8 MB, free: 11.93 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002956/0.1404, allocations: 216 kB / 306 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.1404, allocations: 1.75 kB / 306 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.1404, allocations: 1.906 kB / 306 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1404, allocations: 0.5156 kB / 306 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001669/0.1406, allocations: 227.8 kB / 306.3 MB, free: 11.74 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.1406, allocations: 1.469 kB / 306.3 MB, free: 11.74 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.237e-05/0.1406, allocations: 24.33 kB / 306.3 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.1406, allocations: 5.125 kB / 306.3 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.1406, allocations: 5.266 kB / 306.3 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.1406, allocations: 3.5 kB / 306.3 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1406, allocations: 1.125 kB / 306.3 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002329/0.1409, allocations: 223.2 kB / 306.5 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.081e-05/0.1409, allocations: 25.22 kB / 306.5 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.598e-05/0.1409, allocations: 7.922 kB / 306.6 MB, free: 11.6 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.322e-05/0.141, allocations: 15 kB / 306.6 MB, free: 11.6 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.536e-05/0.141, allocations: 22.25 kB / 306.6 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-06/0.141, allocations: 4.562 kB / 306.6 MB, free: 11.59 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.18e-05/0.1411, allocations: 148.4 kB / 306.7 MB, free: 11.5 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1411, allocations: 1.031 kB / 306.7 MB, free: 11.5 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001947/0.1413, allocations: 37.89 kB / 306.8 MB, free: 11.49 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.0004229/0.1417, allocations: 0.7654 MB / 307.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002688/0.142, allocations: 167.5 kB / 307.7 MB, free: 10.8 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.142, allocations: 0 / 307.7 MB, free: 10.8 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.1421, allocations: 80.27 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.0002418/0.1424, allocations: 49.23 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.00181/0.1442, allocations: 2.185 MB / 310 MB, free: 9.191 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001049/0.1443, allocations: 121.3 kB / 310.1 MB, free: 9.117 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001067/0.1444, allocations: 37.42 kB / 310.2 MB, free: 9.113 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.575e-05/0.1445, allocations: 59.69 kB / 310.2 MB, free: 9.07 MB / 282.7 MB Notification: Performance of SimCode: time 1.273e-06/0.1445, allocations: 1.531 kB / 310.2 MB, free: 9.07 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02193/0.1664, allocations: 4.95 MB / 315.2 MB, free: 7.727 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.253/7.42, allocations: 10.34 kB / 315.2 MB, free: 7.719 MB / 282.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00198965 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.csv","/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] "Error: Could not read variable multiSwitch.u[1] in file Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[1] from file Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! Error: Could not read variable multiSwitch.u[2] in file Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[2] from file Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.17042840924114]