Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001288/0.001287, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001267/0.001267, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 54.5 kB / 307.1 MB, free: 0.5664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09633/0.0976, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.006568/0.1042, allocations: 5.076 MB / 362.7 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003941/0.1082, allocations: 2.152 MB / 364.8 MB, free: 6.766 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004649/0.1087, allocations: 16 kB / 364.8 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003134/0.1119, allocations: 1.403 MB / 366.2 MB, free: 5.344 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001217/0.1131, allocations: 425.4 kB / 366.7 MB, free: 4.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00238/0.1155, allocations: 1.205 MB / 367.9 MB, free: 3.723 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001199/0.1167, allocations: 0.7394 MB / 368.6 MB, free: 2.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001201/0.1179, allocations: 0.6614 MB / 369.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005775/0.1185, allocations: 326.8 kB / 369.6 MB, free: 1.984 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006607/0.1192, allocations: 438.3 kB / 370 MB, free: 1.555 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001536/0.1193, allocations: 68 kB / 370.1 MB, free: 1.488 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009073/0.1202, allocations: 419.6 kB / 370.5 MB, free: 1.078 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001573/0.1204, allocations: 163.4 kB / 370.6 MB, free: 0.918 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004066/0.1208, allocations: 386.1 kB / 371 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1612/0.2821, allocations: 1.195 MB / 372.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.2821, allocations: 1.672 kB / 372.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2821, allocations: 3.844 kB / 372.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.209e-05/0.2822, allocations: 0 / 372.2 MB, free: 11.7 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.007861/0.2901, allocations: 1.471 MB / 373.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.2902, allocations: 9.125 kB / 373.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003288/0.2905, allocations: 132.5 kB / 373.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004664/0.2952, allocations: 383.7 kB / 374.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004484/0.2957, allocations: 269 kB / 374.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001287/0.2958, allocations: 60.67 kB / 374.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002987/0.2961, allocations: 84.22 kB / 374.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002371/0.2985, allocations: 0.8778 MB / 375.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.911e-05/0.2985, allocations: 2.5 kB / 375.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.101e-05/0.2986, allocations: 33.81 kB / 375.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.213e-05/0.2987, allocations: 23.72 kB / 375.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/0.3006, allocations: 0.7953 MB / 376.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006197/0.3068, allocations: 3.042 MB / 379.4 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001497/0.3083, allocations: 1.003 MB / 380.4 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007092/0.309, allocations: 239.5 kB / 380.6 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001608/0.3092, allocations: 175.8 kB / 380.8 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.3093, allocations: 41.28 kB / 380.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 3.126e-06/0.3093, allocations: 4 kB / 380.8 MB, free: 8.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.009737/0.319, allocations: 2.393 MB / 383.2 MB, free: 7.277 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/0.3191, allocations: 88.77 kB / 383.3 MB, free: 7.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005918/0.3197, allocations: 319.5 kB / 383.6 MB, free: 7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.539e-05/0.3198, allocations: 35.95 kB / 383.7 MB, free: 6.961 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003263/0.3201, allocations: 364.7 kB / 384 MB, free: 6.672 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002458/0.3204, allocations: 204.2 kB / 384.2 MB, free: 6.516 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003843/0.3208, allocations: 147.7 kB / 384.4 MB, free: 6.438 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.3209, allocations: 351.1 kB / 384.7 MB, free: 6.105 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001133/0.3221, allocations: 280.5 kB / 385 MB, free: 6.023 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001331/0.3234, allocations: 0.5055 MB / 385.5 MB, free: 5.641 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002346/0.3258, allocations: 0.8047 MB / 386.3 MB, free: 5.145 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.755e-05/0.3258, allocations: 2 kB / 386.3 MB, free: 5.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002959/0.3288, allocations: 0.904 MB / 387.2 MB, free: 4.832 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.437e-05/0.3288, allocations: 8.562 kB / 387.2 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.246e-05/0.3289, allocations: 11.44 kB / 387.2 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004346/0.3293, allocations: 68.91 kB / 387.3 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/0.3305, allocations: 200.4 kB / 387.5 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001982/0.3325, allocations: 2.867 MB / 390.3 MB, free: 1.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009628/0.3335, allocations: 65.14 kB / 390.4 MB, free: 1.906 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.3336, allocations: 37.86 kB / 390.4 MB, free: 1.898 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003943/0.334, allocations: 219 kB / 390.7 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/0.3342, allocations: 49.06 kB / 390.7 MB, free: 1.695 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00246/0.3366, allocations: 0.7305 MB / 391.4 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.3367, allocations: 10.05 kB / 391.4 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.3367, allocations: 1.125 kB / 391.4 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/0.3367, allocations: 1.312 kB / 391.5 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003666/0.3404, allocations: 1.43 MB / 392.9 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.3404, allocations: 0 / 392.9 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008503/0.3413, allocations: 131.2 kB / 393 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000232/0.3415, allocations: 63.23 kB / 393.1 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.55e-05/0.3416, allocations: 15.77 kB / 393.1 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002702/0.3443, allocations: 2.847 MB / 395.9 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.3443, allocations: 2.688 kB / 395.9 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003502/0.3478, allocations: 1.083 MB / 397 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002457/0.3481, allocations: 162.6 kB / 397.2 MB, free: 13.15 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.658e-05/0.3482, allocations: 14.5 kB / 397.2 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005221/0.3487, allocations: 52.83 kB / 397.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/0.3489, allocations: 41.02 kB / 397.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.005e-05/0.3489, allocations: 19.33 kB / 397.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002647/0.3492, allocations: 220.7 kB / 397.5 MB, free: 13 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3492, allocations: 1.031 kB / 397.5 MB, free: 13 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000828/0.35, allocations: 178.5 kB / 397.7 MB, free: 12.97 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_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 (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003021/0.3531, allocations: 1.677 MB / 399.4 MB, free: 11.85 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002335/0.3554, allocations: 0.9448 MB / 400.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3554, allocations: 3.938 kB / 400.3 MB, free: 11.31 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009826/0.3564, allocations: 0.5482 MB / 400.9 MB, free: 10.95 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004858/0.3569, allocations: 46.92 kB / 400.9 MB, free: 10.91 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009006/0.3659, allocations: 5.241 MB / 406.2 MB, free: 7.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004677/0.3664, allocations: 0.8834 MB / 407 MB, free: 6.445 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000499/0.3669, allocations: 89.31 kB / 407.1 MB, free: 6.395 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000341/0.3673, allocations: 215.2 kB / 407.3 MB, free: 6.219 MB / 318.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3673, allocations: 1.156 kB / 407.3 MB, free: 6.219 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03549/0.4028, allocations: 11.17 MB / 418.5 MB, free: 11.33 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.582/9.984, allocations: 0.875 kB / 418.5 MB, free: 11.33 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches