Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000832/0.000832, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007819/0.0007819, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8915/0.8915, allocations: 173.4 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.624e-06/1.624e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.765e-05/1.928e-05, allocations: 2.281 kB / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002227/0.002246, allocations: 1.79 MB / 320.2 MB, free: 4.539 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007275/0.002973, allocations: 0.5647 MB / 320.8 MB, free: 3.973 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.495e-05/0.003058, allocations: 7.938 kB / 320.8 MB, free: 3.965 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001078/0.003166, allocations: 19.73 kB / 320.8 MB, free: 3.945 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001189/0.003285, allocations: 39.66 kB / 320.8 MB, free: 3.906 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002369/0.003522, allocations: 75.72 kB / 320.9 MB, free: 3.832 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001724/0.003694, allocations: 171.3 kB / 321.1 MB, free: 3.664 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001412/0.003836, allocations: 49.91 kB / 321.1 MB, free: 3.613 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001258/0.003961, allocations: 95.72 kB / 321.2 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.004078, allocations: 67.78 kB / 321.3 MB, free: 3.453 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.147e-05/0.0041, allocations: 12 kB / 321.3 MB, free: 3.441 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.755e-05/0.004157, allocations: 23.94 kB / 321.3 MB, free: 3.418 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.817e-05/0.004215, allocations: 47.83 kB / 321.4 MB, free: 3.371 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.344e-05/0.004269, allocations: 51.83 kB / 321.4 MB, free: 3.32 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002025/0.004471, allocations: 199.2 kB / 321.6 MB, free: 3.125 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.265e-06/0.004474, allocations: 0 / 321.6 MB, free: 3.125 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.004475, allocations: 0 / 321.6 MB, free: 3.125 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.004479, allocations: 0 / 321.6 MB, free: 3.125 MB / 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.0005971/0.005076, allocations: 440.9 kB / 322.1 MB, free: 2.664 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.005112, allocations: 12.86 kB / 322.1 MB, free: 2.652 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.528e-05/0.005147, allocations: 46.73 kB / 322.1 MB, free: 2.598 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.847e-05/0.005186, allocations: 24.8 kB / 322.1 MB, free: 2.574 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001983/0.005384, allocations: 181.2 kB / 322.3 MB, free: 2.371 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.005403, allocations: 8.656 kB / 322.3 MB, free: 2.363 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.236e-05/0.005425, allocations: 16.38 kB / 322.3 MB, free: 2.348 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002673/0.005693, allocations: 203.6 kB / 322.5 MB, free: 2.133 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.005703, allocations: 3.984 kB / 322.5 MB, free: 2.129 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.005718, allocations: 12 kB / 322.6 MB, free: 2.117 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.824e-05/0.005736, allocations: 4 kB / 322.6 MB, free: 2.113 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001994/0.005936, allocations: 143.8 kB / 322.7 MB, free: 1.973 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007306/0.006666, allocations: 0.707 MB / 323.4 MB, free: 1.211 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002187/0.006885, allocations: 161 kB / 323.6 MB, free: 1.035 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.672e-05/0.006972, allocations: 73.8 kB / 323.6 MB, free: 0.957 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.372e-05/0.007005, allocations: 112 / 323.6 MB, free: 0.957 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001796/0.007185, allocations: 152.9 kB / 323.8 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 8.32e-07/0.007186, allocations: 0 / 323.8 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003789/0.007565, allocations: 254.1 kB / 324 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.007609, allocations: 81.11 kB / 324.1 MB, free: 448 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.007747, allocations: 215 kB / 324.3 MB, free: 224 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.007762, allocations: 25.7 kB / 324.3 MB, free: 192 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.916e-05/0.007842, allocations: 148.3 kB / 324.5 MB, free: 40 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.592e-05/0.007867, allocations: 39.69 kB / 324.5 MB, free: 0 / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.011e-05/0.007918, allocations: 45.66 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.327e-05/0.008011, allocations: 338.8 kB / 324.9 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.492e-05/0.008106, allocations: 67.95 kB / 325 MB, free: 15.54 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.008217, allocations: 122.8 kB / 325.1 MB, free: 15.4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002005/0.008417, allocations: 210.7 kB / 325.3 MB, free: 15.17 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.00842, allocations: 0 / 325.3 MB, free: 15.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002479/0.008668, allocations: 245.4 kB / 325.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.008682, allocations: 11.94 kB / 325.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.008687, allocations: 0 / 325.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.0087, allocations: 4 kB / 325.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/0.0088, allocations: 27.98 kB / 325.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.008809, allocations: 11.92 kB / 325.6 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.47e-05/0.008883, allocations: 27.88 kB / 325.6 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.008894, allocations: 8 kB / 325.6 MB, free: 14.83 MB / 298.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 9.325e-05/0.008987, allocations: 145.8 kB / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.735e-05/0.009005, allocations: 19.86 kB / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002685/0.009273, allocations: 211 kB / 326 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.009275, allocations: 0 / 326 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.009281, allocations: 4 kB / 326 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.009284, allocations: 0 / 326 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001654/0.00945, allocations: 232.5 kB / 326.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.009452, allocations: 4 kB / 326.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.315e-05/0.009505, allocations: 19.92 kB / 326.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.009507, allocations: 8 kB / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.068e-06/0.009516, allocations: 0 / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.009518, allocations: 0 / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.00952, allocations: 7.984 kB / 326.3 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002164/0.009736, allocations: 232.9 kB / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.911e-05/0.009756, allocations: 23.78 kB / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.53e-05/0.009771, allocations: 3.938 kB / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.576e-05/0.009827, allocations: 19.98 kB / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.667e-05/0.009873, allocations: 16.06 kB / 326.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.009882, allocations: 11.94 kB / 326.6 MB, free: 13.81 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.427e-05/0.009966, allocations: 148.4 kB / 326.7 MB, free: 13.67 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009966, allocations: 0 / 326.7 MB, free: 13.67 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000171/0.01014, allocations: 35.94 kB / 326.7 MB, free: 13.63 MB / 298.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.0006171/0.01075, allocations: 0.7653 MB / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002262/0.01098, allocations: 175.9 kB / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.01098, allocations: 0 / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.215e-05/0.01107, allocations: 75.95 kB / 327.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002147/0.01129, allocations: 40.61 kB / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.01288, allocations: 2.176 MB / 330 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.395e-05/0.01295, allocations: 132.9 kB / 330.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.16e-05/0.01302, allocations: 37.45 kB / 330.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.898e-05/0.01309, allocations: 52.48 kB / 330.2 MB, free: 9.996 MB / 298.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01309, allocations: 0 / 330.2 MB, free: 9.996 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01885/0.03195, allocations: 4.97 MB / 335.2 MB, free: 5.188 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.831/6.863, allocations: 14.95 kB / 335.2 MB, free: 5.176 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00198965 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.521629687398672]