Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 113.8 kB / 17.06 MB, free: 5.996 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.001017/0.001017, allocations: 194.9 kB / 18.01 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 51.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2828, allocations: 49.43 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.004908/0.2877, allocations: 3.501 MB / 403.7 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001566/0.2893, allocations: 0.9269 MB / 404.7 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001948/0.2895, allocations: 8 kB / 404.7 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002674/0.2898, allocations: 95.14 kB / 404.8 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003621/0.2902, allocations: 158.7 kB / 404.9 MB, free: 4.113 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003448/0.2905, allocations: 175.7 kB / 405.1 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005608/0.2911, allocations: 0.6345 MB / 405.7 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000301/0.2914, allocations: 189.5 kB / 405.9 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002852/0.2917, allocations: 239 kB / 406.1 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002746/0.292, allocations: 274.7 kB / 406.4 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.018e-05/0.2921, allocations: 52 kB / 406.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.455e-05/0.2922, allocations: 52 kB / 406.5 MB, free: 2.508 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.68e-05/0.2923, allocations: 123.6 kB / 406.6 MB, free: 2.387 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002278/0.2925, allocations: 290.5 kB / 406.9 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005962/0.2931, allocations: 0.6213 MB / 407.5 MB, free: 1.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.2931, allocations: 0 / 407.5 MB, free: 1.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.2931, allocations: 4 kB / 407.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.2931, allocations: 0 / 407.5 MB, free: 1.477 MB / 318.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.001456/0.2946, allocations: 0.8686 MB / 408.4 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.2946, allocations: 11.89 kB / 408.4 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.923e-05/0.2947, allocations: 90.7 kB / 408.5 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.557e-05/0.2948, allocations: 64.56 kB / 408.6 MB, free: 396 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004885/0.2953, allocations: 363.2 kB / 408.9 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.8e-05/0.2954, allocations: 37.69 kB / 409 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.326e-05/0.2955, allocations: 52.12 kB / 409 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007983/0.2963, allocations: 434.4 kB / 409.4 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.2963, allocations: 0 / 409.4 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.052e-05/0.2963, allocations: 20 kB / 409.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.2964, allocations: 12 kB / 409.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008144/0.2972, allocations: 393 kB / 409.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00231/0.2995, allocations: 1.578 MB / 411.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007029/0.3002, allocations: 402.5 kB / 411.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003982/0.3006, allocations: 185.3 kB / 412 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.722e-05/0.3007, allocations: 8.391 kB / 412 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.3007, allocations: 38.88 kB / 412.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.433e-06/0.3007, allocations: 0 / 412.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.003123/0.3038, allocations: 1.196 MB / 413.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.3039, allocations: 55.97 kB / 413.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004116/0.3043, allocations: 401.5 kB / 413.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/0.3043, allocations: 33.7 kB / 413.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001902/0.3045, allocations: 304.7 kB / 414 MB, free: 10.69 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.3047, allocations: 202.3 kB / 414.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.3048, allocations: 110.3 kB / 414.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.305, allocations: 354.8 kB / 414.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004097/0.3054, allocations: 181.2 kB / 414.9 MB, free: 9.844 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004869/0.3059, allocations: 303 kB / 415.2 MB, free: 9.504 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008773/0.3068, allocations: 494.5 kB / 415.6 MB, free: 8.977 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.3068, allocations: 3.938 kB / 415.6 MB, free: 8.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001408/0.3082, allocations: 0.7463 MB / 416.4 MB, free: 8.211 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.3082, allocations: 11.94 kB / 416.4 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.3083, allocations: 0 / 416.4 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005156/0.3088, allocations: 185.5 kB / 416.6 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004684/0.3093, allocations: 107.9 kB / 416.7 MB, free: 7.906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004003/0.3133, allocations: 4.278 MB / 421 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003966/0.3137, allocations: 28.31 kB / 421 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.665e-05/0.3137, allocations: 24 kB / 421 MB, free: 3.305 MB / 334.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.0002247/0.314, allocations: 181.7 kB / 421.2 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.468e-05/0.314, allocations: 55.61 kB / 421.2 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001239/0.3142, allocations: 60.97 kB / 421.3 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.3142, allocations: 8 kB / 421.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/0.3142, allocations: 4 kB / 421.3 MB, free: 2.992 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.3142, allocations: 7.984 kB / 421.3 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002198/0.3164, allocations: 1.3 MB / 422.6 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.3164, allocations: 0 / 422.6 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002946/0.3167, allocations: 72.02 kB / 422.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003983/0.3171, allocations: 165.5 kB / 422.9 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.657e-05/0.3172, allocations: 12 kB / 422.9 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00358/0.3208, allocations: 4.099 MB / 427 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.3208, allocations: 8.094 kB / 427 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.322, allocations: 0.6977 MB / 427.7 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.3221, allocations: 132.7 kB / 427.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.184e-05/0.3222, allocations: 12 kB / 427.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002854/0.3225, allocations: 23.98 kB / 427.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.3226, allocations: 44.42 kB / 427.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.3226, allocations: 19.94 kB / 427.9 MB, free: 12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002806/0.3229, allocations: 279.2 kB / 428.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3229, allocations: 0 / 428.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006632/0.3236, allocations: 148 kB / 428.3 MB, free: 11.59 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.001503/0.3251, allocations: 1.262 MB / 429.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001471/0.3265, allocations: 0.7884 MB / 430.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3266, allocations: 0 / 430.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007798/0.3274, allocations: 0.5243 MB / 430.9 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00043/0.3278, allocations: 47.12 kB / 430.9 MB, free: 8.867 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007035/0.3348, allocations: 4.63 MB / 435.6 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004766/0.3353, allocations: 0.8591 MB / 436.4 MB, free: 3.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001814/0.3355, allocations: 48.36 kB / 436.5 MB, free: 3.105 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002368/0.3358, allocations: 179.4 kB / 436.7 MB, free: 2.93 MB / 350.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3358, allocations: 0 / 436.7 MB, free: 2.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0348/0.3706, allocations: 9.669 MB / 446.3 MB, free: 9.441 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/10.71, allocations: 12.34 kB / 446.3 MB, free: 9.43 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches