Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001721/0.001721, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 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.00147/0.00147, allocations: 216.5 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.528/1.528, allocations: 230.6 MB / 257.5 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 43.94 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2762/0.2777, allocations: 53.37 MB / 431.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003089/0.2808, allocations: 1.891 MB / 433 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.2822, allocations: 0.666 MB / 433.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.2823, allocations: 0 / 433.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001454/0.2824, allocations: 27.67 kB / 433.7 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001575/0.2826, allocations: 35.66 kB / 433.8 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003504/0.2829, allocations: 79.78 kB / 433.8 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002841/0.2832, allocations: 175.4 kB / 434 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.2834, allocations: 48.56 kB / 434.1 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001888/0.2836, allocations: 87.58 kB / 434.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001648/0.2838, allocations: 71.62 kB / 434.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.136e-05/0.2838, allocations: 12 kB / 434.2 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.2839, allocations: 27.98 kB / 434.3 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.285e-05/0.284, allocations: 55.7 kB / 434.3 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.529e-05/0.2841, allocations: 79.48 kB / 434.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000307/0.2844, allocations: 195.4 kB / 434.6 MB, free: 3.391 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2844, allocations: 0 / 434.6 MB, free: 3.391 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2844, allocations: 3.938 kB / 434.6 MB, free: 3.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.2844, allocations: 4 kB / 434.6 MB, free: 3.383 MB / 334.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.0009573/0.2854, allocations: 445.5 kB / 435 MB, free: 2.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.2854, allocations: 8.031 kB / 435 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.775e-05/0.2855, allocations: 50.73 kB / 435.1 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/0.2856, allocations: 36.78 kB / 435.1 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002884/0.2859, allocations: 179.4 kB / 435.3 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.2859, allocations: 12.59 kB / 435.3 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.003e-05/0.2859, allocations: 16.38 kB / 435.3 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003658/0.2863, allocations: 203.9 kB / 435.5 MB, free: 2.371 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.2863, allocations: 0 / 435.5 MB, free: 2.371 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.2863, allocations: 4 kB / 435.5 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/0.2864, allocations: 12 kB / 435.5 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003034/0.2867, allocations: 139.8 kB / 435.7 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/0.2878, allocations: 0.7536 MB / 436.4 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003473/0.2881, allocations: 165 kB / 436.6 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/0.2883, allocations: 65.81 kB / 436.6 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.173e-05/0.2883, allocations: 8 kB / 436.7 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002753/0.2886, allocations: 138.7 kB / 436.8 MB, free: 1 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.362e-06/0.2886, allocations: 0 / 436.8 MB, free: 1 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006035/0.2892, allocations: 269.7 kB / 437.1 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.354e-05/0.2893, allocations: 81.11 kB / 437.1 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002106/0.2895, allocations: 215 kB / 437.3 MB, free: 424 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.803e-05/0.2895, allocations: 29.7 kB / 437.4 MB, free: 388 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.2896, allocations: 140.3 kB / 437.5 MB, free: 244 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.167e-05/0.2897, allocations: 47.64 kB / 437.6 MB, free: 196 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.879e-05/0.2897, allocations: 41.7 kB / 437.6 MB, free: 148 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.2899, allocations: 330.8 kB / 437.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001529/0.29, allocations: 71.95 kB / 438 MB, free: 15.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/0.2902, allocations: 132.4 kB / 438.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003343/0.2906, allocations: 206.6 kB / 438.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2906, allocations: 112 / 438.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004264/0.291, allocations: 249.2 kB / 438.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.291, allocations: 4 kB / 438.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.291, allocations: 4 kB / 438.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.291, allocations: 4 kB / 438.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001663/0.2912, allocations: 31.92 kB / 438.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.2912, allocations: 4 kB / 438.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001512/0.2914, allocations: 32.05 kB / 438.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.2914, allocations: 8 kB / 438.6 MB, free: 15.03 MB / 350.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.0001357/0.2915, allocations: 145.7 kB / 438.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.661e-05/0.2915, allocations: 19.91 kB / 438.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000433/0.292, allocations: 214.8 kB / 439 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.292, allocations: 4 kB / 439 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.292, allocations: 0 / 439 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.292, allocations: 4 kB / 439 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002878/0.2923, allocations: 248.5 kB / 439.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2923, allocations: 0 / 439.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001142/0.2924, allocations: 23.97 kB / 439.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.2924, allocations: 0 / 439.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.2924, allocations: 4 kB / 439.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.783e-06/0.2924, allocations: 3.938 kB / 439.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2924, allocations: 0 / 439.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003976/0.2928, allocations: 238.5 kB / 439.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.774e-05/0.2928, allocations: 11.91 kB / 439.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.054e-05/0.2929, allocations: 7.984 kB / 439.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.293, allocations: 15.98 kB / 439.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.597e-05/0.2931, allocations: 15.97 kB / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.2931, allocations: 4 kB / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000133/0.2932, allocations: 156.6 kB / 439.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2932, allocations: 96 / 439.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002571/0.2935, allocations: 47.83 kB / 439.8 MB, free: 13.81 MB / 350.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.0007227/0.2942, allocations: 0.7623 MB / 440.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004052/0.2946, allocations: 171.8 kB / 440.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2946, allocations: 0 / 440.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001726/0.2948, allocations: 75.89 kB / 440.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003215/0.2951, allocations: 43.91 kB / 440.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002759/0.2978, allocations: 2.188 MB / 443 MB, free: 10.4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003634/0.2982, allocations: 0.7358 MB / 443.8 MB, free: 9.637 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001102/0.2983, allocations: 37.61 kB / 443.8 MB, free: 9.602 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.892e-05/0.2984, allocations: 67.41 kB / 443.9 MB, free: 9.539 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2984, allocations: 0 / 443.9 MB, free: 9.539 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03302/0.3314, allocations: 4.364 MB / 448.2 MB, free: 5.324 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.78, allocations: 7.562 kB / 448.2 MB, free: 5.32 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00198965 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 14.343114539049566]