Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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 4.0.0+maint.om/package.mo", uses=false) 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.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",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.001835/0.001835, allocations: 104 kB / 16.92 MB, free: 5.793 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.002509/0.002509, allocations: 191.3 kB / 17.85 MB, free: 5.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.312/2.312, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 47.39 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.1566, allocations: 49.45 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.009173/0.1658, allocations: 6.689 MB / 356.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005056/0.1709, allocations: 2.393 MB / 359.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007692/0.1718, allocations: 20 kB / 359.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004573/0.1763, allocations: 1.882 MB / 361.2 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002186/0.1785, allocations: 0.6988 MB / 361.9 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002781/0.1813, allocations: 1.178 MB / 363 MB, free: 7.395 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001722/0.1831, allocations: 1.113 MB / 364.2 MB, free: 6.277 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001751/0.1848, allocations: 0.9469 MB / 365.1 MB, free: 5.312 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009074/0.1858, allocations: 482.1 kB / 365.6 MB, free: 4.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001043/0.1868, allocations: 0.6186 MB / 366.2 MB, free: 4.219 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003269/0.1872, allocations: 100 kB / 366.3 MB, free: 4.121 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001347/0.1885, allocations: 431.6 kB / 366.7 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003749/0.1889, allocations: 255 kB / 367 MB, free: 3.449 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009584/0.1899, allocations: 0.552 MB / 367.5 MB, free: 2.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002818/0.1927, allocations: 1.631 MB / 369.1 MB, free: 1.258 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.1927, allocations: 0 / 369.1 MB, free: 1.258 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1927, allocations: 0 / 369.1 MB, free: 1.258 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.472e-05/0.1928, allocations: 0 / 369.1 MB, free: 1.258 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.3155/0.5083, allocations: 2.018 MB / 371.2 MB, free: 24.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.47e-05/0.5084, allocations: 9.812 kB / 371.2 MB, free: 24.3 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003155/0.5087, allocations: 188.9 kB / 371.4 MB, free: 24.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003976/0.5127, allocations: 0.506 MB / 371.9 MB, free: 24.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005217/0.5133, allocations: 309.4 kB / 372.2 MB, free: 23.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000173/0.5134, allocations: 99.58 kB / 372.3 MB, free: 23.92 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003332/0.5138, allocations: 127.9 kB / 372.4 MB, free: 23.92 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003794/0.5176, allocations: 1.302 MB / 373.7 MB, free: 23.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.046e-05/0.5177, allocations: 5.031 kB / 373.7 MB, free: 23.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001261/0.5178, allocations: 51.72 kB / 373.7 MB, free: 23.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.311e-05/0.5178, allocations: 31.28 kB / 373.8 MB, free: 23.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002977/0.5208, allocations: 1.201 MB / 375 MB, free: 23.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007962/0.5288, allocations: 4.227 MB / 379.2 MB, free: 20.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002794/0.5317, allocations: 2.443 MB / 381.6 MB, free: 18.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001111/0.5328, allocations: 0.5099 MB / 382.2 MB, free: 18.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000147/0.533, allocations: 112.6 kB / 382.3 MB, free: 18.4 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/0.533, allocations: 45.59 kB / 382.3 MB, free: 18.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=122): time 4.298e-06/0.533, allocations: 1.188 kB / 382.3 MB, free: 18.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.01214/0.5452, allocations: 3.791 MB / 386.1 MB, free: 16.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.714e-05/0.5453, allocations: 90.36 kB / 386.2 MB, free: 16.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005402/0.5458, allocations: 389.6 kB / 386.6 MB, free: 16.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.948e-05/0.5459, allocations: 46.97 kB / 386.6 MB, free: 16.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002503/0.5462, allocations: 451.8 kB / 387.1 MB, free: 16.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000281/0.5465, allocations: 423.4 kB / 387.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003735/0.5468, allocations: 234 kB / 387.7 MB, free: 15.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.459e-05/0.5469, allocations: 375.9 kB / 388.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001149/0.5481, allocations: 434.3 kB / 388.5 MB, free: 15.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001274/0.5494, allocations: 0.6912 MB / 389.2 MB, free: 14.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002385/0.5518, allocations: 1.186 MB / 390.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/0.5518, allocations: 3.969 kB / 390.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003127/0.5549, allocations: 1.468 MB / 391.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.16e-05/0.555, allocations: 12.41 kB / 391.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.127e-05/0.555, allocations: 7.031 kB / 391.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006433/0.5557, allocations: 211.5 kB / 392.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.557, allocations: 292.8 kB / 392.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003654/0.5607, allocations: 4.367 MB / 396.7 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001124/0.5618, allocations: 82.08 kB / 396.8 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/0.5619, allocations: 51.64 kB / 396.8 MB, free: 8.984 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (146): * Single equations (assignments): 144 * 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,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004878/0.5624, allocations: 265.4 kB / 397.1 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.5626, allocations: 72.86 kB / 397.2 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003436/0.566, allocations: 1.356 MB / 398.5 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.5661, allocations: 11.88 kB / 398.5 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/0.5661, allocations: 11.84 kB / 398.6 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/0.5661, allocations: 7.969 kB / 398.6 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004408/0.5705, allocations: 2.624 MB / 401.2 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.5705, allocations: 0 / 401.2 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009879/0.5715, allocations: 211.7 kB / 401.4 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003953/0.5719, allocations: 177.5 kB / 401.6 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.544e-05/0.572, allocations: 27.98 kB / 401.6 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003009/0.575, allocations: 4.186 MB / 405.8 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.5751, allocations: 3.938 kB / 405.8 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004014/0.5791, allocations: 1.874 MB / 407.7 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000414/0.5795, allocations: 232.1 kB / 407.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/0.5796, allocations: 28.05 kB / 407.9 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007523/0.5804, allocations: 67.95 kB / 408 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.5806, allocations: 91.73 kB / 408.1 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.127e-05/0.5807, allocations: 35.98 kB / 408.1 MB, free: 14.51 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003433/0.5811, allocations: 267.2 kB / 408.4 MB, free: 14.25 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5811, allocations: 0 / 408.4 MB, free: 14.25 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001308/0.5824, allocations: 306.6 kB / 408.7 MB, free: 13.95 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (106): * Single equations (assignments): 104 * 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,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004792/0.5872, allocations: 2.489 MB / 411.2 MB, free: 11.42 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004356/0.5916, allocations: 1.504 MB / 412.7 MB, free: 9.906 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.5916, allocations: 0 / 412.7 MB, free: 9.906 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001775/0.5934, allocations: 0.8584 MB / 413.5 MB, free: 9.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007861/0.5942, allocations: 84.42 kB / 413.6 MB, free: 8.941 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01681/0.611, allocations: 7.867 MB / 421.5 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008887/0.6119, allocations: 1.009 MB / 422.5 MB, free: 15.74 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009036/0.6129, allocations: 146.6 kB / 422.6 MB, free: 15.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006181/0.6135, allocations: 351.3 kB / 423 MB, free: 15.25 MB / 334.1 MB Notification: Performance of SimCode: time 1.202e-06/0.6135, allocations: 3.938 kB / 423 MB, free: 15.25 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07738/0.6909, allocations: 17.06 MB / 440 MB, free: 14.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.74/16.43, allocations: 2.844 kB / 440 MB, free: 14.39 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_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_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches