Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.001892/0.001892, allocations: 108.6 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.00205/0.00205, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.42/1.42, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 39.94 kB / 371.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3015/0.303, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006653/0.3097, allocations: 5.111 MB / 428.5 MB, free: 9.469 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003716/0.3134, allocations: 2.113 MB / 430.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002111/0.3136, allocations: 19.94 kB / 430.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002916/0.3165, allocations: 1.404 MB / 432.1 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001171/0.3177, allocations: 0.5749 MB / 432.6 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002098/0.3198, allocations: 1.084 MB / 433.7 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008385/0.3206, allocations: 0.7317 MB / 434.5 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008616/0.3215, allocations: 0.5878 MB / 435.1 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004166/0.3219, allocations: 338.8 kB / 435.4 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005095/0.3224, allocations: 430.3 kB / 435.8 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.973e-05/0.3225, allocations: 68 kB / 435.9 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006771/0.3232, allocations: 391.6 kB / 436.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000132/0.3233, allocations: 163.4 kB / 436.4 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003898/0.3237, allocations: 382.1 kB / 436.8 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001309/0.325, allocations: 1.195 MB / 438 MB, free: 15.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.325, allocations: 0 / 438 MB, free: 15.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.325, allocations: 0 / 438 MB, free: 15.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.325, allocations: 0 / 438 MB, free: 15.99 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004221/0.3293, allocations: 1.39 MB / 439.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.3293, allocations: 8.031 kB / 439.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.641e-05/0.3293, allocations: 22.19 kB / 439.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001452/0.3295, allocations: 139.4 kB / 439.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002433/0.3319, allocations: 376.1 kB / 439.9 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002382/0.3321, allocations: 206.2 kB / 440.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.979e-05/0.3322, allocations: 62.38 kB / 440.2 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.3323, allocations: 84.38 kB / 440.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00165/0.334, allocations: 0.8757 MB / 441.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.603e-05/0.334, allocations: 7.938 kB / 441.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.43e-05/0.3341, allocations: 32 kB / 441.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.827e-05/0.3341, allocations: 20 kB / 441.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001858/0.336, allocations: 0.8003 MB / 442 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004448/0.3404, allocations: 2.767 MB / 444.7 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.3415, allocations: 0.5129 MB / 445.3 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005326/0.342, allocations: 222.2 kB / 445.5 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.729e-05/0.3421, allocations: 16.48 kB / 445.5 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/0.3421, allocations: 39.06 kB / 445.5 MB, free: 8.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 1.844e-06/0.3421, allocations: 0 / 445.5 MB, free: 8.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.008249/0.3504, allocations: 2.194 MB / 447.7 MB, free: 5.941 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.313e-05/0.3505, allocations: 93.59 kB / 447.8 MB, free: 5.832 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003644/0.3508, allocations: 292.5 kB / 448.1 MB, free: 5.543 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.118e-05/0.3509, allocations: 37.7 kB / 448.1 MB, free: 5.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002958/0.3512, allocations: 379.9 kB / 448.5 MB, free: 5.121 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002188/0.3514, allocations: 226 kB / 448.7 MB, free: 4.898 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002498/0.3516, allocations: 146.6 kB / 448.9 MB, free: 4.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.3518, allocations: 350.7 kB / 449.2 MB, free: 4.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008275/0.3527, allocations: 273.8 kB / 449.5 MB, free: 4.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/0.3538, allocations: 0.513 MB / 450 MB, free: 3.512 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001851/0.3556, allocations: 0.8049 MB / 450.8 MB, free: 2.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.3556, allocations: 4 kB / 450.8 MB, free: 2.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002244/0.3579, allocations: 0.9011 MB / 451.7 MB, free: 1.691 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.117e-05/0.3579, allocations: 11.94 kB / 451.7 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.3579, allocations: 8 kB / 451.7 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002657/0.3582, allocations: 69.67 kB / 451.8 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008735/0.359, allocations: 207.7 kB / 452 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0024/0.3614, allocations: 2.662 MB / 454.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000742/0.3622, allocations: 63.91 kB / 454.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.109e-05/0.3623, allocations: 43.92 kB / 454.8 MB, free: 14.39 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004124/0.3627, allocations: 217.7 kB / 455 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.3628, allocations: 43.89 kB / 455 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002127/0.3649, allocations: 0.7413 MB / 455.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.3649, allocations: 4 kB / 455.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.3649, allocations: 4 kB / 455.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.3649, allocations: 7.922 kB / 455.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003016/0.3679, allocations: 1.387 MB / 457.2 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.3679, allocations: 4 kB / 457.2 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006761/0.3686, allocations: 135.8 kB / 457.3 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001928/0.3688, allocations: 61.66 kB / 457.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.2e-05/0.3689, allocations: 12 kB / 457.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002221/0.3711, allocations: 2.653 MB / 460 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3711, allocations: 0 / 460 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002847/0.3739, allocations: 1.093 MB / 461.1 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002264/0.3742, allocations: 79.69 kB / 461.2 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.141e-05/0.3742, allocations: 15.95 kB / 461.2 MB, free: 7.613 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005461/0.3748, allocations: 51.94 kB / 461.3 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/0.375, allocations: 44.41 kB / 461.3 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.739e-05/0.375, allocations: 24.05 kB / 461.3 MB, free: 7.496 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002647/0.3753, allocations: 211.1 kB / 461.5 MB, free: 7.285 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3753, allocations: 0 / 461.5 MB, free: 7.285 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008076/0.3761, allocations: 175.9 kB / 461.7 MB, free: 7.113 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (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,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003209/0.3793, allocations: 1.676 MB / 463.4 MB, free: 5.402 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002183/0.3815, allocations: 0.8924 MB / 464.3 MB, free: 4.492 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3815, allocations: 0 / 464.3 MB, free: 4.492 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001104/0.3826, allocations: 0.5312 MB / 464.8 MB, free: 3.938 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000517/0.3831, allocations: 54.08 kB / 464.9 MB, free: 3.883 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/0.3934, allocations: 5.159 MB / 470 MB, free: 14.42 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005875/0.394, allocations: 0.8848 MB / 470.9 MB, free: 13.51 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003912/0.3944, allocations: 96.52 kB / 471 MB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003495/0.3948, allocations: 223.3 kB / 471.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3948, allocations: 0 / 471.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4289/0.8237, allocations: 11.83 MB / 483 MB, free: 1.547 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.42/15.24, allocations: 14.75 kB / 483.1 MB, free: 1.535 MB / 382.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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: 17.809872718004044]