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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 109.3 kB / 17.73 MB, free: 5.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002345/0.002345, allocations: 188.2 kB / 18.66 MB, free: 4.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.464/1.464, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 55.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09231/0.094, allocations: 46.61 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00355/0.09758, allocations: 1.852 MB / 376.5 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001416/0.09902, allocations: 0.6403 MB / 377.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.09914, allocations: 7.938 kB / 377.1 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.09931, allocations: 27.67 kB / 377.2 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001625/0.09951, allocations: 31.66 kB / 377.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003795/0.09989, allocations: 71.86 kB / 377.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002684/0.1002, allocations: 159.5 kB / 377.4 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001913/0.1004, allocations: 81.47 kB / 377.5 MB, free: 2.188 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001156/0.1005, allocations: 67.66 kB / 377.6 MB, free: 2.121 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001487/0.1006, allocations: 79.61 kB / 377.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.121e-05/0.1007, allocations: 15.94 kB / 377.7 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001381/0.1008, allocations: 23.98 kB / 377.7 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.564e-05/0.1009, allocations: 43.84 kB / 377.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.729e-05/0.101, allocations: 75.48 kB / 377.8 MB, free: 1.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002801/0.1013, allocations: 183.1 kB / 378 MB, free: 1.707 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1013, allocations: 3.984 kB / 378 MB, free: 1.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1013, allocations: 4 kB / 378 MB, free: 1.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1013, allocations: 4 kB / 378 MB, free: 1.695 MB / 318.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.000936/0.1023, allocations: 0.5102 MB / 378.5 MB, free: 1.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.1023, allocations: 8.031 kB / 378.5 MB, free: 1.129 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.746e-05/0.1024, allocations: 50.67 kB / 378.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.114e-05/0.1025, allocations: 24.8 kB / 378.6 MB, free: 1.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003683/0.1028, allocations: 239.9 kB / 378.8 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.701e-05/0.1029, allocations: 16.59 kB / 378.8 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.628e-05/0.1029, allocations: 16.38 kB / 378.8 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003847/0.1033, allocations: 191.1 kB / 379 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.1033, allocations: 4 kB / 379 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.1033, allocations: 4 kB / 379 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.2e-05/0.1034, allocations: 15.94 kB / 379.1 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003745/0.1037, allocations: 147.8 kB / 379.2 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1726/0.2764, allocations: 0.7699 MB / 380 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003104/0.2767, allocations: 156.3 kB / 380.1 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001337/0.2769, allocations: 79.52 kB / 380.2 MB, free: 12.42 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.214e-05/0.2769, allocations: 3.547 kB / 380.2 MB, free: 12.42 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002832/0.2772, allocations: 153.1 kB / 380.4 MB, free: 12.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.134e-06/0.2772, allocations: 2.062 kB / 380.4 MB, free: 12.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005444/0.2778, allocations: 256 kB / 380.6 MB, free: 12.33 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/0.2778, allocations: 84.41 kB / 380.7 MB, free: 12.23 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.278, allocations: 206.2 kB / 380.9 MB, free: 12.13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.555e-05/0.2781, allocations: 31.64 kB / 380.9 MB, free: 12.1 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.365e-05/0.2782, allocations: 140.4 kB / 381.1 MB, free: 12 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.252e-05/0.2782, allocations: 47.84 kB / 381.1 MB, free: 11.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.502e-05/0.2783, allocations: 42.23 kB / 381.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.695e-05/0.2783, allocations: 331.9 kB / 381.5 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001419/0.2785, allocations: 69.03 kB / 381.5 MB, free: 11.65 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001558/0.2786, allocations: 129.4 kB / 381.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003078/0.279, allocations: 206.4 kB / 381.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.279, allocations: 3.938 kB / 381.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004515/0.2795, allocations: 242.1 kB / 382.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.2795, allocations: 6.875 kB / 382.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.2795, allocations: 3.188 kB / 382.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.172e-05/0.2795, allocations: 2.625 kB / 382.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/0.2797, allocations: 31.45 kB / 382.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.2797, allocations: 11.47 kB / 382.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/0.2799, allocations: 33.94 kB / 382.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.52e-05/0.2799, allocations: 6.875 kB / 382.2 MB, free: 11.45 MB / 318.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 9.352e-05/0.28, allocations: 144.6 kB / 382.3 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.25e-05/0.2801, allocations: 23.44 kB / 382.4 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004731/0.2805, allocations: 206.9 kB / 382.6 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.2805, allocations: 11.3 kB / 382.6 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.2806, allocations: 7.688 kB / 382.6 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.2806, allocations: 2.047 kB / 382.6 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002538/0.2808, allocations: 269.8 kB / 382.9 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.2808, allocations: 1.094 kB / 382.9 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001546/0.281, allocations: 21.2 kB / 382.9 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.281, allocations: 1.156 kB / 382.9 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.281, allocations: 1.828 kB / 382.9 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.281, allocations: 1.125 kB / 382.9 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.281, allocations: 5.734 kB / 382.9 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000359/0.2814, allocations: 226.8 kB / 383.1 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.236e-05/0.2814, allocations: 100.2 kB / 383.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.579e-05/0.2815, allocations: 2.047 kB / 383.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.2816, allocations: 17.92 kB / 383.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.216e-05/0.2817, allocations: 24.97 kB / 383.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.2817, allocations: 5 kB / 383.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001229/0.2818, allocations: 150.2 kB / 383.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.727e-06/0.2819, allocations: 0 / 383.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002821/0.2821, allocations: 42.03 kB / 383.4 MB, free: 10.78 MB / 318.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.0005441/0.2827, allocations: 0.768 MB / 384.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004235/0.2831, allocations: 172.9 kB / 384.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.2832, allocations: 3.641 kB / 384.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001649/0.2833, allocations: 88.95 kB / 384.5 MB, free: 10.06 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.2837, allocations: 46.56 kB / 384.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002246/0.286, allocations: 2.166 MB / 386.7 MB, free: 8.473 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001721/0.2861, allocations: 0.736 MB / 387.4 MB, free: 7.773 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00011/0.2863, allocations: 32.75 kB / 387.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.083e-05/0.2864, allocations: 59.91 kB / 387.5 MB, free: 7.727 MB / 318.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2864, allocations: 3.938 kB / 387.5 MB, free: 7.723 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02607/0.3124, allocations: 4.119 MB / 391.6 MB, free: 7.039 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.981/8.293, allocations: 13.23 kB / 391.6 MB, free: 7.027 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches