Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 212.6 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.409/1.409, allocations: 230.6 MB / 258.3 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 43.94 kB / 378.5 MB, free: 3.062 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2516, allocations: 53.36 MB / 431.9 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.008024/0.2596, allocations: 5.94 MB / 437.8 MB, free: 0.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004477/0.2641, allocations: 2.316 MB / 440.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004809/0.2646, allocations: 24 kB / 440.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003997/0.2685, allocations: 1.737 MB / 441.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001631/0.2702, allocations: 0.5433 MB / 442.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002761/0.2729, allocations: 1.254 MB / 443.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001663/0.2746, allocations: 1.109 MB / 444.8 MB, free: 9.703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001591/0.2762, allocations: 0.8417 MB / 445.6 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001077/0.2773, allocations: 0.4904 MB / 446.1 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001189/0.2785, allocations: 0.6225 MB / 446.8 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002964/0.2788, allocations: 100 kB / 446.9 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001243/0.28, allocations: 435.6 kB / 447.3 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002411/0.2802, allocations: 251 kB / 447.5 MB, free: 6.957 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005681/0.2808, allocations: 465.8 kB / 448 MB, free: 6.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002149/0.283, allocations: 1.673 MB / 449.7 MB, free: 4.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.283, allocations: 0 / 449.7 MB, free: 4.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.283, allocations: 4 kB / 449.7 MB, free: 4.816 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.464e-05/0.283, allocations: 4 kB / 449.7 MB, free: 4.812 MB / 350.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.00653/0.2895, allocations: 1.968 MB / 451.6 MB, free: 2.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.806e-05/0.2896, allocations: 12.03 kB / 451.6 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.328e-05/0.2897, allocations: 38.77 kB / 451.7 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002615/0.2899, allocations: 190.4 kB / 451.9 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003483/0.2934, allocations: 495.8 kB / 452.4 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003975/0.2938, allocations: 260.7 kB / 452.6 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.2939, allocations: 94.95 kB / 452.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002407/0.2941, allocations: 136.3 kB / 452.8 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002663/0.2968, allocations: 1.32 MB / 454.2 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.505e-05/0.2968, allocations: 0 / 454.2 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001204/0.297, allocations: 52 kB / 454.2 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.229e-05/0.297, allocations: 36 kB / 454.2 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002704/0.2997, allocations: 1.193 MB / 455.4 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006539/0.3062, allocations: 3.481 MB / 458.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002013/0.3082, allocations: 1.145 MB / 460.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009579/0.3092, allocations: 460.6 kB / 460.5 MB, free: 9.746 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001686/0.3094, allocations: 40.97 kB / 460.5 MB, free: 9.703 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.621e-05/0.3094, allocations: 43.56 kB / 460.6 MB, free: 9.652 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 4.358e-06/0.3094, allocations: 3.938 kB / 460.6 MB, free: 9.648 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.01519/0.3246, allocations: 3.545 MB / 464.1 MB, free: 6.066 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001323/0.3248, allocations: 94.11 kB / 464.2 MB, free: 5.953 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008346/0.3256, allocations: 401.4 kB / 464.6 MB, free: 5.555 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.3257, allocations: 45.7 kB / 464.7 MB, free: 5.504 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005152/0.3262, allocations: 468.6 kB / 465.1 MB, free: 5.039 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005612/0.3268, allocations: 448.1 kB / 465.6 MB, free: 4.598 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005936/0.3274, allocations: 231.5 kB / 465.8 MB, free: 4.363 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00025/0.3276, allocations: 374.8 kB / 466.2 MB, free: 3.988 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001632/0.3292, allocations: 431.8 kB / 466.6 MB, free: 3.566 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001907/0.3312, allocations: 0.7169 MB / 467.3 MB, free: 2.742 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003563/0.3347, allocations: 1.175 MB / 468.5 MB, free: 1.469 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.644e-05/0.3347, allocations: 11.92 kB / 468.5 MB, free: 1.457 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004656/0.3394, allocations: 1.459 MB / 469.9 MB, free: 15.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.216e-05/0.3394, allocations: 8 kB / 469.9 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.316e-05/0.3395, allocations: 4 kB / 469.9 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000936/0.3404, allocations: 201.6 kB / 470.1 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001713/0.3421, allocations: 279.6 kB / 470.4 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006747/0.3488, allocations: 4.125 MB / 474.5 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001328/0.3502, allocations: 79.89 kB / 474.6 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002313/0.3504, allocations: 51.98 kB / 474.7 MB, free: 11.02 MB / 382.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.0008713/0.3513, allocations: 269.6 kB / 474.9 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000292/0.3516, allocations: 75.52 kB / 475 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004402/0.356, allocations: 1.32 MB / 476.3 MB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.241e-05/0.356, allocations: 19.94 kB / 476.3 MB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.638e-05/0.356, allocations: 4 kB / 476.4 MB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.5e-05/0.356, allocations: 7.969 kB / 476.4 MB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00699/0.363, allocations: 2.325 MB / 478.7 MB, free: 6.914 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.899e-06/0.363, allocations: 0 / 478.7 MB, free: 6.914 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001385/0.3644, allocations: 211.9 kB / 478.9 MB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006688/0.3651, allocations: 161.7 kB / 479 MB, free: 6.543 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001149/0.3652, allocations: 31.92 kB / 479.1 MB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005948/0.3712, allocations: 3.95 MB / 483 MB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.3712, allocations: 4.031 kB / 483 MB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005577/0.3767, allocations: 1.861 MB / 484.9 MB, free: 452 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005632/0.3773, allocations: 155.5 kB / 485 MB, free: 296 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002009/0.3775, allocations: 27.94 kB / 485.1 MB, free: 268 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009877/0.3785, allocations: 59.95 kB / 485.1 MB, free: 208 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002723/0.3788, allocations: 100.9 kB / 485.2 MB, free: 104 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001955/0.379, allocations: 39.92 kB / 485.3 MB, free: 64 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005706/0.3795, allocations: 271.2 kB / 485.5 MB, free: 15.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3795, allocations: 0 / 485.5 MB, free: 15.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001829/0.3814, allocations: 303.9 kB / 485.8 MB, free: 15.5 MB / 398.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.004633/0.386, allocations: 2.477 MB / 488.3 MB, free: 12.98 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003081/0.3891, allocations: 1.395 MB / 489.7 MB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.3891, allocations: 0 / 489.7 MB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001505/0.3906, allocations: 0.8117 MB / 490.5 MB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006058/0.3912, allocations: 69.48 kB / 490.6 MB, free: 10.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01324/0.4044, allocations: 7.562 MB / 498.1 MB, free: 2.777 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004668/0.4049, allocations: 416.3 kB / 498.6 MB, free: 2.332 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005784/0.4055, allocations: 142.6 kB / 498.7 MB, free: 2.188 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000524/0.406, allocations: 351.3 kB / 499 MB, free: 1.844 MB / 398.1 MB Notification: Performance of SimCode: time 8.51e-07/0.406, allocations: 0 / 499 MB, free: 1.844 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.525/0.931, allocations: 18.72 MB / 0.5056 GB, free: 15.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.85/24.78, allocations: 3.984 kB / 0.5056 GB, free: 15.4 MB / 430.1 MB " [Timeout remaining time 635] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 27.32370247191284]