Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001505/0.001505, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001782/0.001783, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002009/0.002009, allocations: 64.11 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2749, allocations: 50.54 MB / 408.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.005634/0.2806, allocations: 3.522 MB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002067/0.2827, allocations: 0.9542 MB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000406/0.2831, allocations: 4 kB / 413.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003912/0.2836, allocations: 95.09 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006105/0.2842, allocations: 166.7 kB / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004848/0.2847, allocations: 175.7 kB / 413.7 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008521/0.2856, allocations: 0.646 MB / 414.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000343/0.2859, allocations: 185.5 kB / 414.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003738/0.2863, allocations: 243 kB / 414.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000419/0.2867, allocations: 274.7 kB / 415 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.2869, allocations: 52 kB / 415 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001212/0.287, allocations: 52 kB / 415.1 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001324/0.2871, allocations: 119.5 kB / 415.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000344/0.2875, allocations: 294.4 kB / 415.5 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008005/0.2883, allocations: 0.6369 MB / 416.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.2883, allocations: 0 / 416.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2883, allocations: 0 / 416.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.452e-05/0.2883, allocations: 0 / 416.1 MB, free: 10.14 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001811/0.2902, allocations: 0.8764 MB / 417 MB, free: 9.219 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.2902, allocations: 8.031 kB / 417 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001292/0.2904, allocations: 94.64 kB / 417.1 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.2905, allocations: 68.52 kB / 417.2 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006255/0.2911, allocations: 351.9 kB / 417.5 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.561e-05/0.2912, allocations: 41.67 kB / 417.6 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.105e-05/0.2913, allocations: 56.12 kB / 417.6 MB, free: 8.566 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009106/0.2922, allocations: 438.4 kB / 418.1 MB, free: 8.133 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.2922, allocations: 0 / 418.1 MB, free: 8.133 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.662e-05/0.2923, allocations: 20 kB / 418.1 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.2923, allocations: 12 kB / 418.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009374/0.2932, allocations: 389 kB / 418.5 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002964/0.2962, allocations: 1.578 MB / 420 MB, free: 6.031 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007893/0.297, allocations: 409.4 kB / 420.4 MB, free: 5.602 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004298/0.2975, allocations: 173.4 kB / 420.6 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.3e-05/0.2975, allocations: 8.391 kB / 420.6 MB, free: 5.422 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.686e-05/0.2976, allocations: 46.83 kB / 420.7 MB, free: 5.367 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 2.235e-06/0.2976, allocations: 0 / 420.7 MB, free: 5.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.003622/0.3012, allocations: 1.204 MB / 421.9 MB, free: 4.148 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/0.3013, allocations: 59.97 kB / 421.9 MB, free: 4.078 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005626/0.3019, allocations: 409.5 kB / 422.3 MB, free: 3.668 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.14e-05/0.3019, allocations: 37.7 kB / 422.4 MB, free: 3.625 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002441/0.3022, allocations: 312.7 kB / 422.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001743/0.3024, allocations: 190.3 kB / 422.9 MB, free: 3.125 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001832/0.3025, allocations: 122.2 kB / 423 MB, free: 2.996 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.3027, allocations: 354.8 kB / 423.3 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004775/0.3032, allocations: 185.2 kB / 423.5 MB, free: 2.461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005504/0.3038, allocations: 303.1 kB / 423.8 MB, free: 2.121 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009842/0.3048, allocations: 490.5 kB / 424.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.3048, allocations: 3.938 kB / 424.3 MB, free: 1.598 MB / 334.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001604/0.3064, allocations: 0.7421 MB / 425 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/0.3064, allocations: 6.812 kB / 425 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.3065, allocations: 8 kB / 425 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006053/0.3071, allocations: 181.6 kB / 425.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005415/0.3076, allocations: 111.8 kB / 425.3 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004938/0.3126, allocations: 4.278 MB / 429.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004897/0.3131, allocations: 35.92 kB / 429.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.048e-05/0.3132, allocations: 20 kB / 429.7 MB, free: 11.93 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (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,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003217/0.3135, allocations: 186.8 kB / 429.8 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.3136, allocations: 51.67 kB / 429.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001576/0.3138, allocations: 69 kB / 430 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.3138, allocations: 4 kB / 430 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.772e-05/0.3138, allocations: 4 kB / 430 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.3139, allocations: 3.984 kB / 430 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00274/0.3166, allocations: 1.307 MB / 431.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.3166, allocations: 4 kB / 431.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000327/0.317, allocations: 63.89 kB / 431.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004821/0.3175, allocations: 169.6 kB / 431.5 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.004e-05/0.3175, allocations: 12 kB / 431.5 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004422/0.3219, allocations: 4.1 MB / 435.6 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.322, allocations: 0 / 435.6 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/0.3234, allocations: 0.7134 MB / 436.3 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/0.3236, allocations: 124.7 kB / 436.5 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.388e-05/0.3237, allocations: 12.28 kB / 436.5 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003235/0.324, allocations: 23.97 kB / 436.5 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.3242, allocations: 44.38 kB / 436.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.204e-05/0.3242, allocations: 23.94 kB / 436.6 MB, free: 4.613 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003972/0.3246, allocations: 287.1 kB / 436.8 MB, free: 4.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3246, allocations: 0 / 436.8 MB, free: 4.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007828/0.3254, allocations: 148 kB / 437 MB, free: 4.195 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (35): * Single equations (assignments): 33 * 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.001876/0.3273, allocations: 1.257 MB / 438.2 MB, free: 2.891 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001793/0.3291, allocations: 0.7846 MB / 439 MB, free: 2.074 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.3292, allocations: 4.812 kB / 439 MB, free: 2.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009445/0.3301, allocations: 0.5269 MB / 439.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005711/0.3307, allocations: 53.05 kB / 439.6 MB, free: 1.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008535/0.3393, allocations: 4.683 MB / 444.3 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006216/0.3399, allocations: 0.8592 MB / 445.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002276/0.3402, allocations: 48.34 kB / 445.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002826/0.3405, allocations: 179.3 kB / 445.4 MB, free: 11.46 MB / 366.1 MB Notification: Performance of SimCode: time 1.051e-06/0.3405, allocations: 0 / 445.4 MB, free: 11.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04599/0.3865, allocations: 9.798 MB / 455.2 MB, free: 1.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.7, allocations: 11.58 kB / 455.2 MB, free: 1.832 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.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_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches