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.001425/0.001425, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001603/0.001603, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.391/1.391, allocations: 230.6 MB / 258.3 MB, free: 8.012 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.001538/0.001538, allocations: 47.92 kB / 378.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2853, allocations: 53.35 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.008791/0.2941, allocations: 6.772 MB / 438.7 MB, free: 64 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004701/0.2988, allocations: 2.491 MB / 441.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005445/0.2993, allocations: 20 kB / 441.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004215/0.3035, allocations: 1.9 MB / 443.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001635/0.3052, allocations: 0.5472 MB / 443.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0026/0.3078, allocations: 1.334 MB / 445 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001422/0.3092, allocations: 1.121 MB / 446.1 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00122/0.3104, allocations: 0.8263 MB / 446.9 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006369/0.311, allocations: 0.4904 MB / 447.4 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007036/0.3117, allocations: 0.6225 MB / 448.1 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001255/0.3119, allocations: 100 kB / 448.2 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009119/0.3128, allocations: 443.6 kB / 448.6 MB, free: 6.133 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001992/0.313, allocations: 251.1 kB / 448.8 MB, free: 5.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004914/0.3135, allocations: 0.5558 MB / 449.4 MB, free: 5.328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002013/0.3155, allocations: 1.68 MB / 451.1 MB, free: 3.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3155, allocations: 4 kB / 451.1 MB, free: 3.641 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3155, allocations: 0 / 451.1 MB, free: 3.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.3155, allocations: 4 kB / 451.1 MB, free: 3.637 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.006023/0.3215, allocations: 1.968 MB / 453 MB, free: 1.633 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.3216, allocations: 12.03 kB / 453.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.248e-05/0.3216, allocations: 34.77 kB / 453.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002029/0.3218, allocations: 190.4 kB / 453.3 MB, free: 1.391 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003309/0.3251, allocations: 499.7 kB / 453.8 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002996/0.3254, allocations: 256.8 kB / 454 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.674e-05/0.3255, allocations: 94.95 kB / 454.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001917/0.3257, allocations: 132.3 kB / 454.2 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002368/0.3281, allocations: 1.303 MB / 455.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.371e-05/0.3281, allocations: 4 kB / 455.5 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001135/0.3282, allocations: 56 kB / 455.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.767e-05/0.3282, allocations: 28 kB / 455.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002477/0.3307, allocations: 1.189 MB / 456.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006481/0.3372, allocations: 4.028 MB / 460.8 MB, free: 9.578 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002078/0.3393, allocations: 1.152 MB / 462 MB, free: 8.449 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009217/0.3402, allocations: 456.6 kB / 462.4 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001432/0.3403, allocations: 48.92 kB / 462.5 MB, free: 7.957 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.436e-05/0.3404, allocations: 47.56 kB / 462.5 MB, free: 7.898 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.086e-06/0.3404, allocations: 0 / 462.5 MB, free: 7.898 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.01015/0.3505, allocations: 3.541 MB / 466.1 MB, free: 4.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.807e-05/0.3506, allocations: 98.11 kB / 466.2 MB, free: 4.207 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004406/0.351, allocations: 385.5 kB / 466.6 MB, free: 3.824 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.901e-05/0.3511, allocations: 45.7 kB / 466.6 MB, free: 3.773 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000299/0.3514, allocations: 472.6 kB / 467.1 MB, free: 3.305 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003355/0.3517, allocations: 452.1 kB / 467.5 MB, free: 2.859 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003471/0.3521, allocations: 235.5 kB / 467.7 MB, free: 2.621 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.3523, allocations: 374.8 kB / 468.1 MB, free: 2.246 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/0.3533, allocations: 427.8 kB / 468.5 MB, free: 1.828 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001209/0.3545, allocations: 0.6918 MB / 469.2 MB, free: 1.035 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002277/0.3568, allocations: 1.175 MB / 470.4 MB, free: 15.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.3568, allocations: 8 kB / 470.4 MB, free: 15.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002999/0.3598, allocations: 1.466 MB / 471.9 MB, free: 14.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.3598, allocations: 12.16 kB / 471.9 MB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.3598, allocations: 8 kB / 471.9 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005157/0.3603, allocations: 193.6 kB / 472.1 MB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.3615, allocations: 283.6 kB / 472.3 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0044/0.3659, allocations: 4.167 MB / 476.5 MB, free: 9.391 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008724/0.3667, allocations: 83.95 kB / 476.6 MB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.599e-05/0.3668, allocations: 52.17 kB / 476.6 MB, free: 9.258 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.0004303/0.3673, allocations: 265.5 kB / 476.9 MB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.3674, allocations: 75.45 kB / 477 MB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002985/0.3704, allocations: 1.323 MB / 478.3 MB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/0.3704, allocations: 19.92 kB / 478.3 MB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.3704, allocations: 4 kB / 478.3 MB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.3704, allocations: 3.984 kB / 478.3 MB, free: 7.555 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004609/0.375, allocations: 2.566 MB / 480.9 MB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.375, allocations: 8.031 kB / 480.9 MB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009515/0.376, allocations: 211.7 kB / 481.1 MB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004308/0.3764, allocations: 165.6 kB / 481.3 MB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.587e-05/0.3765, allocations: 27.98 kB / 481.3 MB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004237/0.3807, allocations: 3.985 MB / 485.3 MB, free: 276 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3807, allocations: 0 / 485.3 MB, free: 276 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004008/0.3847, allocations: 1.869 MB / 487.1 MB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003693/0.3851, allocations: 155.5 kB / 487.3 MB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/0.3852, allocations: 23.94 kB / 487.3 MB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006899/0.3859, allocations: 59.94 kB / 487.4 MB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001906/0.3861, allocations: 100.9 kB / 487.5 MB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.44e-05/0.3862, allocations: 35.98 kB / 487.5 MB, free: 14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003224/0.3865, allocations: 271.2 kB / 487.8 MB, free: 13.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3865, allocations: 0 / 487.8 MB, free: 13.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001212/0.3877, allocations: 303.9 kB / 488.1 MB, free: 13.44 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.004535/0.3923, allocations: 2.482 MB / 490.6 MB, free: 10.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003178/0.3954, allocations: 1.39 MB / 491.9 MB, free: 9.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.698e-06/0.3954, allocations: 0 / 491.9 MB, free: 9.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001549/0.397, allocations: 0.8163 MB / 492.8 MB, free: 8.656 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006081/0.3976, allocations: 75.48 kB / 492.8 MB, free: 8.582 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01542/0.413, allocations: 7.563 MB / 0.4887 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008787/0.4139, allocations: 1.009 MB / 0.4897 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000588/0.4145, allocations: 142.6 kB / 0.4898 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005772/0.4151, allocations: 347.3 kB / 0.4901 GB, free: 15.18 MB / 414.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4151, allocations: 0 / 0.4901 GB, free: 15.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4655/0.8805, allocations: 18.58 MB / 0.5083 GB, free: 12.79 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.39/24.27, allocations: 8 kB / 0.5083 GB, free: 12.78 MB / 430.1 MB " [Timeout remaining time 636] (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: 26.715436441008933]