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.001601/0.001601, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001866/0.001866, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2923, allocations: 50.53 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.005121/0.2974, allocations: 3.527 MB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001756/0.2992, allocations: 0.9581 MB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002094/0.2995, allocations: 12 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002759/0.2998, allocations: 99.08 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004112/0.3002, allocations: 162.7 kB / 413.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000345/0.3005, allocations: 171.7 kB / 413.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005837/0.3011, allocations: 0.6425 MB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003041/0.3014, allocations: 193.4 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002726/0.3017, allocations: 231.1 kB / 414.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002764/0.302, allocations: 278.6 kB / 415 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.69e-05/0.3021, allocations: 52 kB / 415.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.605e-05/0.3022, allocations: 52 kB / 415.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.03e-05/0.3023, allocations: 123.5 kB / 415.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002426/0.3025, allocations: 286.5 kB / 415.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006034/0.3031, allocations: 0.6407 MB / 416.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3031, allocations: 0 / 416.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3031, allocations: 4 kB / 416.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.3032, allocations: 0 / 416.1 MB, free: 10.11 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.001417/0.3046, allocations: 0.8686 MB / 417 MB, free: 9.188 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.3046, allocations: 12.03 kB / 417 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.635e-05/0.3047, allocations: 90.7 kB / 417.1 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.992e-05/0.3048, allocations: 64.52 kB / 417.2 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004664/0.3053, allocations: 355.9 kB / 417.5 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.911e-05/0.3053, allocations: 41.69 kB / 417.6 MB, free: 8.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.128e-05/0.3054, allocations: 56.12 kB / 417.6 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007783/0.3062, allocations: 438.5 kB / 418.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.3062, allocations: 0 / 418.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.832e-05/0.3063, allocations: 20 kB / 418.1 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.3063, allocations: 12 kB / 418.1 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007952/0.3071, allocations: 389 kB / 418.5 MB, free: 7.691 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00226/0.3094, allocations: 1.585 MB / 420 MB, free: 5.992 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006789/0.3101, allocations: 405.4 kB / 420.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003816/0.3105, allocations: 177.4 kB / 420.6 MB, free: 5.391 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.477e-05/0.3105, allocations: 4.422 kB / 420.6 MB, free: 5.387 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.094e-05/0.3105, allocations: 42.81 kB / 420.7 MB, free: 5.336 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.573e-06/0.3105, allocations: 0 / 420.7 MB, free: 5.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.0031/0.3136, allocations: 1.208 MB / 421.9 MB, free: 4.113 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/0.3137, allocations: 59.97 kB / 421.9 MB, free: 4.043 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000425/0.3141, allocations: 409.5 kB / 422.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.026e-05/0.3142, allocations: 33.7 kB / 422.4 MB, free: 3.594 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001838/0.3144, allocations: 312.6 kB / 422.7 MB, free: 3.281 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.3145, allocations: 198.3 kB / 422.9 MB, free: 3.086 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.3146, allocations: 118.2 kB / 423 MB, free: 2.961 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.3148, allocations: 362.7 kB / 423.3 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004095/0.3152, allocations: 181.2 kB / 423.5 MB, free: 2.422 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004804/0.3157, allocations: 299.2 kB / 423.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008568/0.3166, allocations: 494.5 kB / 424.3 MB, free: 1.562 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.3166, allocations: 7.938 kB / 424.3 MB, free: 1.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001357/0.3179, allocations: 0.7422 MB / 425 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.318, allocations: 10.97 kB / 425 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.318, allocations: 4 kB / 425 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005092/0.3185, allocations: 181.2 kB / 425.2 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004641/0.319, allocations: 115.8 kB / 425.3 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003878/0.3229, allocations: 4.274 MB / 429.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003856/0.3233, allocations: 31.94 kB / 429.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.418e-05/0.3233, allocations: 24 kB / 429.7 MB, free: 11.89 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.0002038/0.3235, allocations: 185.8 kB / 429.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.422e-05/0.3236, allocations: 55.61 kB / 429.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001017/0.3237, allocations: 61.02 kB / 430 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.3237, allocations: 8 kB / 430 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.3237, allocations: 4.188 kB / 430 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.3237, allocations: 3.984 kB / 430 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002114/0.3259, allocations: 1.3 MB / 431.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.3259, allocations: 3.938 kB / 431.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002868/0.3262, allocations: 67.95 kB / 431.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00039/0.3266, allocations: 165.5 kB / 431.5 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.76e-05/0.3266, allocations: 20 kB / 431.5 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003416/0.33, allocations: 4.096 MB / 435.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.3301, allocations: 7.969 kB / 435.6 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.3312, allocations: 0.7095 MB / 436.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001103/0.3313, allocations: 124.7 kB / 436.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.221e-05/0.3314, allocations: 12 kB / 436.5 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002916/0.3317, allocations: 23.98 kB / 436.5 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.503e-05/0.3318, allocations: 48.38 kB / 436.5 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.182e-05/0.3318, allocations: 8 kB / 436.6 MB, free: 4.586 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002831/0.3321, allocations: 287.1 kB / 436.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3321, allocations: 0 / 436.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006859/0.3328, allocations: 156 kB / 437 MB, free: 4.16 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.001435/0.3343, allocations: 1.257 MB / 438.2 MB, free: 2.855 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00139/0.3357, allocations: 0.7928 MB / 439 MB, free: 2.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3357, allocations: 0 / 439 MB, free: 2.031 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007162/0.3364, allocations: 0.5158 MB / 439.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004292/0.3368, allocations: 53.48 kB / 439.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006409/0.3433, allocations: 4.682 MB / 444.3 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004077/0.3437, allocations: 0.8631 MB / 445.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001774/0.3439, allocations: 44.36 kB / 445.2 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002201/0.3441, allocations: 183.3 kB / 445.4 MB, free: 11.44 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3441, allocations: 4 kB / 445.4 MB, free: 11.44 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03153/0.3757, allocations: 9.806 MB / 455.2 MB, free: 1.809 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.1/10.48, allocations: 6.953 kB / 455.2 MB, free: 1.805 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.0.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