Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001171/0.001171, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001248/0.001249, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 63.92 kB / 307.1 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09047/0.09194, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.008748/0.1007, allocations: 6.693 MB / 364.3 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00482/0.1056, allocations: 2.456 MB / 366.7 MB, free: 4.785 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001084/0.1067, allocations: 20 kB / 366.8 MB, free: 4.766 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004669/0.1114, allocations: 1.886 MB / 368.7 MB, free: 2.875 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002027/0.1134, allocations: 0.5433 MB / 369.2 MB, free: 2.328 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002767/0.1162, allocations: 1.326 MB / 370.5 MB, free: 1.008 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1709/0.2871, allocations: 1.101 MB / 371.6 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001553/0.2887, allocations: 0.9354 MB / 372.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006216/0.2894, allocations: 490.9 kB / 373 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005835/0.29, allocations: 0.6152 MB / 373.7 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001444/0.2901, allocations: 100.5 kB / 373.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009536/0.2911, allocations: 445.8 kB / 374.2 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001565/0.2912, allocations: 250.4 kB / 374.4 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004073/0.2916, allocations: 0.5647 MB / 375 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001619/0.2933, allocations: 1.651 MB / 376.6 MB, free: 8.676 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2933, allocations: 0 / 376.6 MB, free: 8.676 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2933, allocations: 1.031 kB / 376.6 MB, free: 8.676 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.676e-05/0.2933, allocations: 0.75 kB / 376.6 MB, free: 8.676 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.00591/0.2992, allocations: 2.026 MB / 378.7 MB, free: 7.969 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.2993, allocations: 10.67 kB / 378.7 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001977/0.2995, allocations: 187.2 kB / 378.9 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00345/0.3029, allocations: 0.5032 MB / 379.4 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003798/0.3033, allocations: 319 kB / 379.7 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.416e-05/0.3034, allocations: 97.55 kB / 379.8 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002318/0.3037, allocations: 130.8 kB / 379.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002388/0.3061, allocations: 1.304 MB / 381.2 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.676e-05/0.3061, allocations: 4.469 kB / 381.2 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001078/0.3062, allocations: 50.94 kB / 381.3 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.719e-05/0.3063, allocations: 36.78 kB / 381.3 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002564/0.3089, allocations: 1.194 MB / 382.5 MB, free: 6.602 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006249/0.3151, allocations: 4.297 MB / 386.8 MB, free: 4.012 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002017/0.3172, allocations: 2.447 MB / 389.2 MB, free: 1.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008516/0.318, allocations: 0.5072 MB / 389.7 MB, free: 1.781 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00017/0.3182, allocations: 196.3 kB / 389.9 MB, free: 1.586 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.3182, allocations: 44.25 kB / 390 MB, free: 1.539 MB / 302.1 MB Notification: Performance of pre-optimization done (n=122): time 2.946e-06/0.3183, allocations: 0 / 390 MB, free: 1.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.009836/0.3281, allocations: 3.768 MB / 393.7 MB, free: 15.93 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.584e-05/0.3282, allocations: 90.8 kB / 393.8 MB, free: 15.83 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004478/0.3286, allocations: 391.8 kB / 394.2 MB, free: 15.62 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.676e-05/0.3287, allocations: 45.83 kB / 394.3 MB, free: 15.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002647/0.329, allocations: 452.1 kB / 394.7 MB, free: 15.21 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003021/0.3293, allocations: 429.2 kB / 395.1 MB, free: 14.85 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003395/0.3297, allocations: 229 kB / 395.3 MB, free: 14.71 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.3298, allocations: 373.1 kB / 395.7 MB, free: 14.35 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009984/0.3308, allocations: 433.2 kB / 396.1 MB, free: 14.15 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001167/0.332, allocations: 0.6979 MB / 396.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002074/0.3341, allocations: 1.175 MB / 398 MB, free: 12.88 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.3341, allocations: 4.969 kB / 398 MB, free: 12.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002754/0.3369, allocations: 1.468 MB / 399.5 MB, free: 12.19 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.3369, allocations: 15.12 kB / 399.5 MB, free: 12.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/0.3369, allocations: 8.219 kB / 399.5 MB, free: 12.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005447/0.3375, allocations: 199 kB / 399.7 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.3387, allocations: 288.1 kB / 400 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004044/0.3427, allocations: 4.373 MB / 404.4 MB, free: 8.109 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.3438, allocations: 79.22 kB / 404.4 MB, free: 8.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.639e-05/0.3439, allocations: 51.25 kB / 404.5 MB, free: 8.059 MB / 318.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.0005335/0.3444, allocations: 275.7 kB / 404.7 MB, free: 7.848 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.3445, allocations: 68.53 kB / 404.8 MB, free: 7.812 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002762/0.3473, allocations: 1.338 MB / 406.2 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.3473, allocations: 12 kB / 406.2 MB, free: 6.539 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.3473, allocations: 7.938 kB / 406.2 MB, free: 6.531 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.3474, allocations: 11.97 kB / 406.2 MB, free: 6.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004305/0.3517, allocations: 2.608 MB / 408.8 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.164e-06/0.3517, allocations: 3.938 kB / 408.8 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009215/0.3526, allocations: 210.4 kB / 409 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004504/0.3531, allocations: 172.3 kB / 409.2 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.862e-05/0.3532, allocations: 24 kB / 409.2 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003663/0.3568, allocations: 4.172 MB / 413.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.3569, allocations: 11.88 kB / 413.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003653/0.3605, allocations: 1.868 MB / 415.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003484/0.3609, allocations: 232.2 kB / 415.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.361, allocations: 23.98 kB / 415.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006873/0.3617, allocations: 64.02 kB / 415.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001809/0.3619, allocations: 87.5 kB / 415.6 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.301e-05/0.362, allocations: 35.98 kB / 415.7 MB, free: 12.69 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002716/0.3622, allocations: 267.2 kB / 415.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3623, allocations: 0 / 415.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001153/0.3634, allocations: 312 kB / 416.2 MB, free: 12.13 MB / 334.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.004015/0.3674, allocations: 2.483 MB / 418.7 MB, free: 9.625 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003723/0.3712, allocations: 1.497 MB / 420.2 MB, free: 8.145 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.3712, allocations: 0 / 420.2 MB, free: 8.145 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.3727, allocations: 0.8611 MB / 421.1 MB, free: 7.277 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006562/0.3733, allocations: 76.8 kB / 421.2 MB, free: 7.207 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01266/0.386, allocations: 7.86 MB / 429 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005634/0.3866, allocations: 1.005 MB / 430 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007208/0.3873, allocations: 138.6 kB / 430.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004666/0.3878, allocations: 347.3 kB / 430.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3878, allocations: 4 kB / 430.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04271/0.4305, allocations: 17.06 MB / 447.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.658/10.09, allocations: 16.98 kB / 447.6 MB, free: 12.74 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches