Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CylinderSections",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CylinderSections",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001364/0.001364, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0016/0.0016, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 64.2 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09895/0.1003, allocations: 50.54 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections): time 0.006298/0.1066, allocations: 4.17 MB / 361.8 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003152/0.1098, allocations: 1.724 MB / 363.5 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005377/0.1104, allocations: 12 kB / 363.5 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002488/0.1129, allocations: 0.9994 MB / 364.5 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008603/0.1138, allocations: 246.2 kB / 364.7 MB, free: 6.789 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001536/0.1153, allocations: 0.7513 MB / 365.5 MB, free: 6.035 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000777/0.1161, allocations: 0.614 MB / 366.1 MB, free: 5.418 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008089/0.1169, allocations: 0.4918 MB / 366.6 MB, free: 4.922 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004277/0.1174, allocations: 267 kB / 366.9 MB, free: 4.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004292/0.1178, allocations: 334.6 kB / 367.2 MB, free: 4.332 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.1179, allocations: 56 kB / 367.2 MB, free: 4.277 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006121/0.1185, allocations: 295.7 kB / 367.5 MB, free: 3.988 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.1187, allocations: 131.5 kB / 367.7 MB, free: 3.859 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002867/0.119, allocations: 302.5 kB / 368 MB, free: 3.562 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001041/0.12, allocations: 0.9307 MB / 368.9 MB, free: 2.629 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.12, allocations: 0 / 368.9 MB, free: 2.629 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.649e-06/0.12, allocations: 0 / 368.9 MB, free: 2.629 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.448e-05/0.1201, allocations: 3.938 kB / 368.9 MB, free: 2.625 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.00367/0.1237, allocations: 1.225 MB / 370.1 MB, free: 1.352 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.1238, allocations: 12.03 kB / 370.1 MB, free: 1.34 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001298/0.1239, allocations: 106.7 kB / 370.2 MB, free: 1.227 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001235/0.1252, allocations: 192 kB / 370.4 MB, free: 1.039 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002388/0.1254, allocations: 241.8 kB / 370.7 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.217e-05/0.1255, allocations: 50.38 kB / 370.7 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.1256, allocations: 64.38 kB / 370.8 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1602/0.2859, allocations: 0.6993 MB / 371.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.001e-05/0.2859, allocations: 0.9375 kB / 371.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.726e-05/0.286, allocations: 27.16 kB / 371.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.14e-05/0.286, allocations: 24.34 kB / 371.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001351/0.2874, allocations: 0.593 MB / 372.1 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003589/0.291, allocations: 2.324 MB / 374.4 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/0.2926, allocations: 1.625 MB / 376.1 MB, free: 17.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000454/0.2931, allocations: 272.2 kB / 376.3 MB, free: 17.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001527/0.2932, allocations: 178.3 kB / 376.5 MB, free: 16.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.337e-05/0.2933, allocations: 39.2 kB / 376.5 MB, free: 16.87 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.294e-06/0.2933, allocations: 3.75 kB / 376.5 MB, free: 16.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.001451/0.2947, allocations: 0.6977 MB / 377.2 MB, free: 16.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/0.2948, allocations: 110.2 kB / 377.4 MB, free: 16.47 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002968/0.2951, allocations: 268.3 kB / 377.6 MB, free: 16.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.421e-05/0.2951, allocations: 35.08 kB / 377.6 MB, free: 16.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.2953, allocations: 265.7 kB / 377.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.2954, allocations: 226.5 kB / 378.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001716/0.2956, allocations: 120.7 kB / 378.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.049e-05/0.2957, allocations: 350.3 kB / 378.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004468/0.2961, allocations: 209.4 kB / 378.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004889/0.2966, allocations: 306.3 kB / 379.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000862/0.2975, allocations: 0.507 MB / 379.6 MB, free: 15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.2975, allocations: 1.219 kB / 379.6 MB, free: 15 MB / 302.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001115/0.2986, allocations: 0.625 MB / 380.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.2987, allocations: 9.219 kB / 380.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.2987, allocations: 1.625 kB / 380.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.2987, allocations: 9.938 kB / 380.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006997/0.2994, allocations: 155.3 kB / 380.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.2994, allocations: 4.75 kB / 380.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004576/0.2999, allocations: 76.86 kB / 380.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.445e-05/0.2999, allocations: 22.66 kB / 380.5 MB, free: 14.68 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * 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.0001951/0.3001, allocations: 192.3 kB / 380.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.3003, allocations: 38.06 kB / 380.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001142/0.3014, allocations: 0.6004 MB / 381.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.361e-06/0.3014, allocations: 7.344 kB / 381.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.3014, allocations: 0.7969 kB / 381.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.3015, allocations: 4.125 kB / 381.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001979/0.3034, allocations: 1.299 MB / 382.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.3035, allocations: 2.984 kB / 382.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005721/0.304, allocations: 128.3 kB / 382.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.3041, allocations: 5.781 kB / 382.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.298e-05/0.3041, allocations: 13.86 kB / 382.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.3041, allocations: 7.5 kB / 382.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3041, allocations: 0 / 382.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0015/0.3056, allocations: 0.973 MB / 383.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.356e-05/0.3057, allocations: 119.8 kB / 383.9 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.41e-05/0.3058, allocations: 20.69 kB / 383.9 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003942/0.3062, allocations: 27.48 kB / 383.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.3063, allocations: 38.16 kB / 384 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.339e-05/0.3063, allocations: 18.14 kB / 384 MB, free: 12.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001785/0.3065, allocations: 191.1 kB / 384.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3065, allocations: 0 / 384.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005875/0.3071, allocations: 184.3 kB / 384.3 MB, free: 12.65 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (source.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 66 * 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 Backend phase and start with SimCode phase: time 0.001716/0.3089, allocations: 1.569 MB / 385.9 MB, free: 11.58 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001369/0.3102, allocations: 0.5617 MB / 386.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3102, allocations: 0 / 386.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004698/0.3107, allocations: 270.2 kB / 386.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000522/0.3113, allocations: 48.88 kB / 386.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00565/0.3169, allocations: 4.231 MB / 391 MB, free: 8.691 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002841/0.3172, allocations: 0.8484 MB / 391.9 MB, free: 7.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004096/0.3176, allocations: 76.31 kB / 391.9 MB, free: 7.945 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002349/0.3179, allocations: 189.6 kB / 392.1 MB, free: 7.809 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3179, allocations: 5.25 kB / 392.1 MB, free: 7.805 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02535/0.3432, allocations: 9.185 MB / 401.3 MB, free: 2.809 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.728/8.071, allocations: 7.859 kB / 401.3 MB, free: 2.805 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CylinderSections.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/FixedShapes/CylinderSections/CylinderSections.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches