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.002027/0.002027, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002306/0.002306, allocations: 214.3 kB / 23.73 MB, free: 4.16 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.465/1.465, allocations: 230.6 MB / 257.5 MB, free: 7.82 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.001581/0.001581, allocations: 51.92 kB / 377.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2582, allocations: 53.36 MB / 431.1 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003045/0.2612, allocations: 1.836 MB / 432.9 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.2624, allocations: 0.6232 MB / 433.5 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.26e-05/0.2625, allocations: 0 / 433.5 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.2626, allocations: 31.67 kB / 433.6 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.2628, allocations: 35.66 kB / 433.6 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002783/0.263, allocations: 83.78 kB / 433.7 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002277/0.2633, allocations: 163.5 kB / 433.8 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.2634, allocations: 52.3 kB / 433.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001602/0.2636, allocations: 75.7 kB / 434 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000142/0.2637, allocations: 71.56 kB / 434 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.027e-05/0.2638, allocations: 12 kB / 434 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.03e-05/0.2638, allocations: 35.97 kB / 434.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.507e-05/0.2639, allocations: 43.84 kB / 434.1 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.123e-05/0.264, allocations: 75.53 kB / 434.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002573/0.2642, allocations: 185 kB / 434.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2643, allocations: 0 / 434.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2643, allocations: 7.875 kB / 434.4 MB, free: 3.375 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.468e-06/0.2643, allocations: 0 / 434.4 MB, free: 3.375 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.0008668/0.2651, allocations: 445.5 kB / 434.8 MB, free: 2.906 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.2652, allocations: 12.03 kB / 434.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.25e-05/0.2652, allocations: 58.59 kB / 434.9 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000147/0.2654, allocations: 32.78 kB / 434.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002632/0.2656, allocations: 167.5 kB / 435.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.2657, allocations: 16.59 kB / 435.1 MB, free: 2.594 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.251e-05/0.2657, allocations: 12.38 kB / 435.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000354/0.266, allocations: 207.9 kB / 435.3 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.266, allocations: 4 kB / 435.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.2661, allocations: 4 kB / 435.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.661e-05/0.2661, allocations: 8 kB / 435.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002992/0.2664, allocations: 143.8 kB / 435.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/0.2675, allocations: 0.7224 MB / 436.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003208/0.2678, allocations: 165 kB / 436.4 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/0.2679, allocations: 65.81 kB / 436.4 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.188e-05/0.268, allocations: 11.98 kB / 436.4 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002527/0.2682, allocations: 137.2 kB / 436.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.392e-06/0.2682, allocations: 3.938 kB / 436.6 MB, free: 1.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005814/0.2688, allocations: 261.7 kB / 436.8 MB, free: 0.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.766e-05/0.2689, allocations: 81.11 kB / 436.9 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002046/0.2691, allocations: 211.1 kB / 437.1 MB, free: 448 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.711e-05/0.2691, allocations: 29.7 kB / 437.1 MB, free: 412 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.2692, allocations: 144.3 kB / 437.3 MB, free: 264 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.366e-05/0.2692, allocations: 47.62 kB / 437.3 MB, free: 216 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.009e-05/0.2693, allocations: 41.7 kB / 437.4 MB, free: 168 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.2695, allocations: 338.8 kB / 437.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.2696, allocations: 71.89 kB / 437.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/0.2698, allocations: 124.5 kB / 437.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000332/0.2702, allocations: 198.7 kB / 438.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.2702, allocations: 0 / 438.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004381/0.2706, allocations: 253.2 kB / 438.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.2706, allocations: 8 kB / 438.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.718e-06/0.2706, allocations: 0 / 438.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.2706, allocations: 4 kB / 438.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.2708, allocations: 35.91 kB / 438.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.076e-06/0.2708, allocations: 4 kB / 438.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001531/0.271, allocations: 31.88 kB / 438.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.271, allocations: 12.19 kB / 438.4 MB, free: 15.04 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.0001383/0.2711, allocations: 145.6 kB / 438.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.091e-05/0.2712, allocations: 19.86 kB / 438.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004446/0.2716, allocations: 215.7 kB / 438.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.2716, allocations: 0 / 438.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.2716, allocations: 4 kB / 438.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.2716, allocations: 0 / 438.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002597/0.2719, allocations: 224.6 kB / 439 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2719, allocations: 4 kB / 439 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.272, allocations: 23.98 kB / 439.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.272, allocations: 0 / 439.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.272, allocations: 0 / 439.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.272, allocations: 4.078 kB / 439.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.272, allocations: 7.969 kB / 439.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004112/0.2724, allocations: 237.6 kB / 439.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.712e-05/0.2724, allocations: 11.91 kB / 439.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.039e-05/0.2725, allocations: 11.94 kB / 439.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.2726, allocations: 15.98 kB / 439.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.059e-05/0.2727, allocations: 15.97 kB / 439.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.2727, allocations: 7.984 kB / 439.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001419/0.2728, allocations: 148.6 kB / 439.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2728, allocations: 4 kB / 439.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002605/0.2731, allocations: 39.89 kB / 439.5 MB, free: 13.85 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.0007583/0.2738, allocations: 0.7635 MB / 440.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003953/0.2742, allocations: 175.9 kB / 440.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2742, allocations: 192 / 440.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001699/0.2744, allocations: 75.89 kB / 440.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003388/0.2747, allocations: 51.89 kB / 440.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002903/0.2776, allocations: 2.181 MB / 442.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.2778, allocations: 124.9 kB / 442.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.2779, allocations: 33.61 kB / 442.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.278, allocations: 59.42 kB / 443 MB, free: 10.2 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.278, allocations: 0 / 443 MB, free: 10.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03294/0.3109, allocations: 4.884 MB / 447.9 MB, free: 5.492 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.01, allocations: 7.188 kB / 447.9 MB, free: 5.488 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.462335366755724]