Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 108.8 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002381/0.002381, allocations: 191.5 kB / 24.5 MB, free: 4.09 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 225.6 MB / 253.3 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_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_0_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.001608/0.001608, allocations: 39.94 kB / 371.2 MB, free: 9.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2755, allocations: 52.19 MB / 423.4 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.008946/0.2845, allocations: 6.757 MB / 430.2 MB, free: 7.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005584/0.29, allocations: 2.425 MB / 432.6 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007943/0.2908, allocations: 24 kB / 432.6 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004619/0.2955, allocations: 1.889 MB / 434.5 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002472/0.2979, allocations: 0.7105 MB / 435.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002621/0.3006, allocations: 1.176 MB / 436.4 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001781/0.3023, allocations: 1.121 MB / 437.5 MB, free: 416 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001374/0.3037, allocations: 0.8457 MB / 438.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006763/0.3044, allocations: 494.1 kB / 438.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007175/0.3051, allocations: 0.6225 MB / 439.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001284/0.3052, allocations: 100 kB / 439.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00097/0.3062, allocations: 431.5 kB / 440 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002109/0.3064, allocations: 247.1 kB / 440.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005811/0.307, allocations: 0.5558 MB / 440.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002314/0.3093, allocations: 1.654 MB / 442.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3093, allocations: 0 / 442.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3093, allocations: 0 / 442.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.782e-05/0.3093, allocations: 0 / 442.5 MB, free: 11.45 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.006579/0.3159, allocations: 1.979 MB / 444.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.316, allocations: 8.031 kB / 444.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.158e-05/0.316, allocations: 42.69 kB / 444.5 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002331/0.3162, allocations: 182.4 kB / 444.7 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003513/0.3198, allocations: 0.5192 MB / 445.2 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005294/0.3203, allocations: 253 kB / 445.4 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/0.3204, allocations: 98.95 kB / 445.5 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002966/0.3207, allocations: 128.3 kB / 445.7 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002723/0.3234, allocations: 1.303 MB / 447 MB, free: 6.844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.799e-05/0.3235, allocations: 11.95 kB / 447 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001278/0.3236, allocations: 52 kB / 447 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.942e-05/0.3236, allocations: 32 kB / 447 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002635/0.3263, allocations: 1.193 MB / 448.2 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007042/0.3333, allocations: 4.001 MB / 452.2 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002174/0.3355, allocations: 1.154 MB / 453.4 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001024/0.3365, allocations: 459.6 kB / 453.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000109/0.3366, allocations: 32.97 kB / 453.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.287e-05/0.3367, allocations: 43.56 kB / 453.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.256e-06/0.3367, allocations: 3.938 kB / 453.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.01111/0.3478, allocations: 3.556 MB / 457.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.598e-05/0.3479, allocations: 94.11 kB / 457.6 MB, free: 12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005019/0.3484, allocations: 389.5 kB / 458 MB, free: 11.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.356e-05/0.3484, allocations: 45.7 kB / 458 MB, free: 11.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003448/0.3488, allocations: 468.6 kB / 458.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003757/0.3492, allocations: 452.1 kB / 458.9 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003731/0.3495, allocations: 227.5 kB / 459.1 MB, free: 10.42 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002147/0.3498, allocations: 374.8 kB / 459.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/0.3509, allocations: 439.8 kB / 459.9 MB, free: 9.613 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001356/0.3523, allocations: 0.6958 MB / 460.6 MB, free: 8.816 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002465/0.3547, allocations: 1.182 MB / 461.8 MB, free: 7.539 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.3547, allocations: 4 kB / 461.8 MB, free: 7.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003191/0.3579, allocations: 1.459 MB / 463.3 MB, free: 6.062 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/0.3579, allocations: 8 kB / 463.3 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.223e-05/0.358, allocations: 8 kB / 463.3 MB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005989/0.3586, allocations: 209.3 kB / 463.5 MB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/0.3598, allocations: 295.6 kB / 463.8 MB, free: 5.551 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004408/0.3642, allocations: 4.162 MB / 467.9 MB, free: 1.164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009833/0.3652, allocations: 75.94 kB / 468 MB, free: 1.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.328e-05/0.3653, allocations: 55.98 kB / 468.1 MB, free: 1.035 MB / 366.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.0004458/0.3657, allocations: 273.5 kB / 468.3 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.3658, allocations: 75.47 kB / 468.4 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003166/0.369, allocations: 1.335 MB / 469.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.369, allocations: 15.94 kB / 469.7 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.369, allocations: 4 kB / 469.8 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.369, allocations: 7.922 kB / 469.8 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004728/0.3738, allocations: 2.578 MB / 472.3 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.3738, allocations: 4.125 kB / 472.3 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/0.3748, allocations: 211.7 kB / 472.5 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004499/0.3752, allocations: 177.5 kB / 472.7 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.905e-05/0.3753, allocations: 31.92 kB / 472.8 MB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004041/0.3793, allocations: 3.974 MB / 476.7 MB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.3793, allocations: 3.938 kB / 476.7 MB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004079/0.3834, allocations: 1.88 MB / 478.6 MB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003814/0.3838, allocations: 155.4 kB / 478.8 MB, free: 5.949 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.3839, allocations: 20 kB / 478.8 MB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006867/0.3846, allocations: 59.95 kB / 478.8 MB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000212/0.3848, allocations: 96.88 kB / 478.9 MB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.3e-05/0.3849, allocations: 35.98 kB / 479 MB, free: 5.742 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003204/0.3852, allocations: 271.4 kB / 479.2 MB, free: 5.477 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3852, allocations: 0 / 479.2 MB, free: 5.477 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001151/0.3864, allocations: 303.9 kB / 479.5 MB, free: 5.18 MB / 382.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.004515/0.3909, allocations: 2.493 MB / 482 MB, free: 2.645 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00321/0.3941, allocations: 1.391 MB / 483.4 MB, free: 1.227 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.3941, allocations: 0 / 483.4 MB, free: 1.227 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001698/0.3958, allocations: 0.8236 MB / 484.2 MB, free: 384 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006116/0.3964, allocations: 69.48 kB / 484.3 MB, free: 316 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0144/0.4108, allocations: 7.641 MB / 491.9 MB, free: 8.352 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007173/0.4115, allocations: 1.005 MB / 493 MB, free: 7.316 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006135/0.4121, allocations: 146.6 kB / 493.1 MB, free: 7.168 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005315/0.4126, allocations: 343.3 kB / 493.4 MB, free: 6.832 MB / 398.1 MB Notification: Performance of SimCode: time 1.313e-06/0.4126, allocations: 4 kB / 493.4 MB, free: 6.828 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7396/1.152, allocations: 18.41 MB / 0.4998 GB, free: 4.598 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24/25.15, allocations: 9.172 kB / 0.4999 GB, free: 4.59 MB / 414.1 MB " [Timeout remaining time 635] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/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_4.0.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.650924062996637]