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.001423/0.001423, allocations: 109.5 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.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.001382/0.001382, allocations: 183.1 kB / 23.72 MB, free: 4.699 MB / 14.72 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 1.52/1.52, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001535/0.001535, allocations: 47.94 kB / 370.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2767, allocations: 52.19 MB / 422.6 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003405/0.2801, allocations: 1.882 MB / 424.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.2812, allocations: 0.5921 MB / 425.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.2814, allocations: 11.94 kB / 425.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.2815, allocations: 23.73 kB / 425.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001538/0.2817, allocations: 35.66 kB / 425.2 MB, free: 12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000273/0.2819, allocations: 67.86 kB / 425.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002915/0.2822, allocations: 171.3 kB / 425.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.2824, allocations: 45.92 kB / 425.4 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.2825, allocations: 75.72 kB / 425.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.2827, allocations: 79.55 kB / 425.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.702e-05/0.2827, allocations: 20 kB / 425.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.176e-05/0.2828, allocations: 23.98 kB / 425.6 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.239e-05/0.2828, allocations: 39.84 kB / 425.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.283, allocations: 79.48 kB / 425.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002669/0.2833, allocations: 187.5 kB / 425.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.371e-06/0.2833, allocations: 3.984 kB / 425.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2833, allocations: 0 / 425.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.2833, allocations: 0 / 425.9 MB, free: 11.23 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.0009208/0.2842, allocations: 449.5 kB / 426.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.2842, allocations: 8.031 kB / 426.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.11e-05/0.2843, allocations: 46.73 kB / 426.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.94e-05/0.2843, allocations: 24.8 kB / 426.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003155/0.2847, allocations: 179 kB / 426.6 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.2847, allocations: 12.41 kB / 426.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.57e-05/0.2847, allocations: 19.98 kB / 426.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003721/0.2851, allocations: 211.6 kB / 426.9 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.2851, allocations: 0 / 426.9 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.2851, allocations: 7.938 kB / 426.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.367e-05/0.2851, allocations: 8 kB / 426.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003375/0.2855, allocations: 143.8 kB / 427 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.2866, allocations: 0.738 MB / 427.8 MB, free: 9.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003261/0.287, allocations: 157 kB / 427.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.2871, allocations: 69.8 kB / 428 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.905e-05/0.2871, allocations: 4 kB / 428 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002611/0.2874, allocations: 149.1 kB / 428.1 MB, free: 8.855 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.162e-06/0.2874, allocations: 0 / 428.1 MB, free: 8.855 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005685/0.288, allocations: 253.6 kB / 428.4 MB, free: 8.602 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.919e-05/0.288, allocations: 85.09 kB / 428.5 MB, free: 8.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002237/0.2883, allocations: 203 kB / 428.7 MB, free: 8.293 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.862e-05/0.2883, allocations: 29.7 kB / 428.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.2884, allocations: 144.4 kB / 428.8 MB, free: 8.113 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.199e-05/0.2885, allocations: 63.5 kB / 428.9 MB, free: 8.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.933e-05/0.2885, allocations: 37.7 kB / 428.9 MB, free: 8.008 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.2887, allocations: 334.8 kB / 429.3 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001468/0.2888, allocations: 67.95 kB / 429.3 MB, free: 7.605 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001865/0.289, allocations: 130.3 kB / 429.5 MB, free: 7.457 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003614/0.2894, allocations: 206.7 kB / 429.7 MB, free: 7.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.2894, allocations: 4 kB / 429.7 MB, free: 7.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000418/0.2898, allocations: 237.9 kB / 429.9 MB, free: 6.988 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.2898, allocations: 4.188 kB / 429.9 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.2898, allocations: 4 kB / 429.9 MB, free: 6.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.2898, allocations: 7.984 kB / 429.9 MB, free: 6.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001587/0.29, allocations: 31.92 kB / 429.9 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.395e-05/0.29, allocations: 4.172 kB / 429.9 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001758/0.2902, allocations: 39.8 kB / 430 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.815e-05/0.2902, allocations: 15.92 kB / 430 MB, free: 6.883 MB / 334.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.0001286/0.2903, allocations: 137.7 kB / 430.1 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.022e-05/0.2904, allocations: 23.89 kB / 430.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004286/0.2908, allocations: 218.9 kB / 430.4 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.345e-06/0.2908, allocations: 0 / 430.4 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.2908, allocations: 0 / 430.4 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.2908, allocations: 7.984 kB / 430.4 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002612/0.2911, allocations: 236.6 kB / 430.6 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2911, allocations: 0 / 430.6 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.2912, allocations: 23.92 kB / 430.6 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.2912, allocations: 11.98 kB / 430.6 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.2912, allocations: 0 / 430.6 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2912, allocations: 0 / 430.6 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.2912, allocations: 4 kB / 430.6 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004122/0.2916, allocations: 237.2 kB / 430.9 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.961e-05/0.2917, allocations: 19.84 kB / 430.9 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.452e-05/0.2917, allocations: 4 kB / 430.9 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001255/0.2918, allocations: 19.97 kB / 430.9 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.448e-05/0.2919, allocations: 19.97 kB / 430.9 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.2919, allocations: 7.938 kB / 430.9 MB, free: 5.852 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001224/0.292, allocations: 140.6 kB / 431.1 MB, free: 5.715 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.292, allocations: 0 / 431.1 MB, free: 5.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000246/0.2923, allocations: 43.89 kB / 431.1 MB, free: 5.672 MB / 334.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.0007514/0.293, allocations: 0.7615 MB / 431.9 MB, free: 4.879 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003998/0.2934, allocations: 168 kB / 432.1 MB, free: 4.715 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2934, allocations: 4.125 kB / 432.1 MB, free: 4.711 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001578/0.2936, allocations: 75.89 kB / 432.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003223/0.2939, allocations: 51.97 kB / 432.2 MB, free: 4.586 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002652/0.2965, allocations: 2.165 MB / 434.3 MB, free: 2.281 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000392/0.2969, allocations: 0.7437 MB / 435.1 MB, free: 1.512 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.674e-05/0.297, allocations: 29.47 kB / 435.1 MB, free: 1.484 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.755e-05/0.2971, allocations: 55.41 kB / 435.2 MB, free: 1.434 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2971, allocations: 0 / 435.2 MB, free: 1.434 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03239/0.3295, allocations: 4.352 MB / 439.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.6, allocations: 3.938 kB / 439.5 MB, free: 13.23 MB / 350.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/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: 14.128798560937867]