Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.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.001612/0.001612, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001834/0.001834, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.532/1.532, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 51.91 kB / 377.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3225, allocations: 53.37 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.005709/0.3282, allocations: 3.56 MB / 434.7 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002159/0.3304, allocations: 0.962 MB / 435.7 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002316/0.3306, allocations: 11.94 kB / 435.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000324/0.3309, allocations: 99.08 kB / 435.8 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004339/0.3314, allocations: 176.4 kB / 435.9 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003933/0.3317, allocations: 163.7 kB / 436.1 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000711/0.3325, allocations: 0.6386 MB / 436.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002989/0.3328, allocations: 142 kB / 436.9 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003262/0.3331, allocations: 251 kB / 437.1 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003736/0.3335, allocations: 274.7 kB / 437.4 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.727e-05/0.3335, allocations: 52 kB / 437.5 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.698e-05/0.3336, allocations: 52 kB / 437.5 MB, free: 488 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.3337, allocations: 131.5 kB / 437.6 MB, free: 356 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002565/0.334, allocations: 278.5 kB / 437.9 MB, free: 76 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007551/0.3347, allocations: 0.6417 MB / 438.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3348, allocations: 0 / 438.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.3348, allocations: 0 / 438.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.61e-05/0.3348, allocations: 3.938 kB / 438.5 MB, free: 15.43 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001627/0.3364, allocations: 0.7972 MB / 439.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.3365, allocations: 12.02 kB / 439.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001114/0.3366, allocations: 90.7 kB / 439.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.3367, allocations: 72.52 kB / 439.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005703/0.3372, allocations: 294.1 kB / 439.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.28e-05/0.3373, allocations: 41.69 kB / 439.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.501e-05/0.3374, allocations: 52.12 kB / 439.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000866/0.3383, allocations: 434.5 kB / 440.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.3383, allocations: 0 / 440.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.346e-05/0.3383, allocations: 20 kB / 440.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.271e-05/0.3383, allocations: 16 kB / 440.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000889/0.3392, allocations: 393 kB / 440.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00274/0.342, allocations: 1.497 MB / 442.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007179/0.3427, allocations: 308.3 kB / 442.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003976/0.3431, allocations: 165.4 kB / 442.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.304e-05/0.3431, allocations: 4.328 kB / 442.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.3432, allocations: 38.89 kB / 442.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.894e-06/0.3432, allocations: 3.938 kB / 442.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.00342/0.3466, allocations: 1.203 MB / 443.9 MB, free: 9.824 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.596e-05/0.3466, allocations: 55.91 kB / 444 MB, free: 9.754 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005146/0.3472, allocations: 413.5 kB / 444.4 MB, free: 9.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.665e-05/0.3472, allocations: 33.7 kB / 444.4 MB, free: 9.305 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002356/0.3474, allocations: 312.6 kB / 444.7 MB, free: 8.992 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001635/0.3476, allocations: 194.3 kB / 444.9 MB, free: 8.801 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/0.3478, allocations: 110.3 kB / 445 MB, free: 8.688 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.3479, allocations: 358.8 kB / 445.4 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000436/0.3484, allocations: 185.2 kB / 445.6 MB, free: 8.145 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005254/0.3489, allocations: 307.2 kB / 445.9 MB, free: 7.801 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009383/0.3498, allocations: 492 kB / 446.4 MB, free: 7.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.3498, allocations: 3.938 kB / 446.4 MB, free: 7.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001493/0.3513, allocations: 0.7288 MB / 447.1 MB, free: 6.535 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.3514, allocations: 12 kB / 447.1 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.3514, allocations: 7.938 kB / 447.1 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005932/0.352, allocations: 185 kB / 447.3 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004875/0.3524, allocations: 108 kB / 447.4 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004563/0.357, allocations: 4.073 MB / 451.5 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004459/0.3575, allocations: 35.92 kB / 451.5 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.127e-05/0.3575, allocations: 24 kB / 451.5 MB, free: 1.867 MB / 350.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.0002586/0.3578, allocations: 177.8 kB / 451.7 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.243e-05/0.3578, allocations: 51.7 kB / 451.7 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001329/0.358, allocations: 65 kB / 451.8 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.358, allocations: 8 kB / 451.8 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.839e-05/0.358, allocations: 7.938 kB / 451.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.358, allocations: 0 / 451.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002409/0.3604, allocations: 1.271 MB / 453.1 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.3604, allocations: 4 kB / 453.1 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000305/0.3607, allocations: 63.89 kB / 453.2 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004666/0.3612, allocations: 165.7 kB / 453.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.075e-05/0.3612, allocations: 19.88 kB / 453.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004046/0.3653, allocations: 3.888 MB / 457.2 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.3653, allocations: 4.031 kB / 457.2 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001343/0.3666, allocations: 0.6962 MB / 457.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.3667, allocations: 51.59 kB / 458 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.329e-05/0.3668, allocations: 12 kB / 458 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002925/0.3671, allocations: 23.97 kB / 458 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.3672, allocations: 52.33 kB / 458.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.686e-05/0.3672, allocations: 16 kB / 458.1 MB, free: 10.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003601/0.3676, allocations: 283.2 kB / 458.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3676, allocations: 0 / 458.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007483/0.3683, allocations: 152 kB / 458.5 MB, free: 10.55 MB / 366.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.001639/0.37, allocations: 1.24 MB / 459.8 MB, free: 9.254 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00159/0.3715, allocations: 0.7658 MB / 460.5 MB, free: 8.457 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3715, allocations: 0 / 460.5 MB, free: 8.457 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008356/0.3724, allocations: 0.5114 MB / 461 MB, free: 7.922 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004683/0.3729, allocations: 41.59 kB / 461.1 MB, free: 7.883 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007596/0.3804, allocations: 4.682 MB / 465.8 MB, free: 3.012 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006066/0.3811, allocations: 0.8553 MB / 466.6 MB, free: 2.129 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002054/0.3813, allocations: 52.34 kB / 466.7 MB, free: 2.074 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002916/0.3816, allocations: 175.4 kB / 466.8 MB, free: 1.902 MB / 366.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3816, allocations: 0 / 466.8 MB, free: 1.902 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05296/0.4345, allocations: 10.35 MB / 477.2 MB, free: 7.699 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.66/13.1, allocations: 11.75 kB / 477.2 MB, free: 7.691 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.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: 15.628730637021363]