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.001573/0.001573, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001649/0.001649, allocations: 188.3 kB / 24.49 MB, free: 3.941 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.43/1.43, allocations: 225.7 MB / 253.3 MB, free: 12.81 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.00156/0.00156, allocations: 47.92 kB / 371.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.328, allocations: 52.18 MB / 423.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006837/0.3349, allocations: 4.552 MB / 427.9 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004004/0.3389, allocations: 1.944 MB / 429.9 MB, free: 7.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003373/0.3392, allocations: 16 kB / 429.9 MB, free: 7.848 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003168/0.3424, allocations: 1.303 MB / 431.2 MB, free: 6.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001345/0.3437, allocations: 0.559 MB / 431.7 MB, free: 5.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002119/0.3459, allocations: 0.9962 MB / 432.7 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001193/0.347, allocations: 0.7355 MB / 433.5 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009974/0.348, allocations: 0.5792 MB / 434.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004683/0.3485, allocations: 342.8 kB / 434.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005078/0.349, allocations: 430.3 kB / 434.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.3491, allocations: 68 kB / 434.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008004/0.3499, allocations: 379.6 kB / 435.2 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001608/0.3501, allocations: 167.4 kB / 435.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002964/0.3504, allocations: 306.6 kB / 435.7 MB, free: 2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001381/0.3518, allocations: 1.207 MB / 436.9 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3518, allocations: 0 / 436.9 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3518, allocations: 0 / 436.9 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.3518, allocations: 0 / 436.9 MB, free: 0.7891 MB / 334.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.00417/0.3559, allocations: 1.386 MB / 438.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.356, allocations: 12.03 kB / 438.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.886e-05/0.356, allocations: 22.19 kB / 438.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001494/0.3562, allocations: 131.4 kB / 438.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002494/0.3587, allocations: 384.1 kB / 438.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/0.3589, allocations: 198.2 kB / 439 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.955e-05/0.359, allocations: 66.38 kB / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.3591, allocations: 80.38 kB / 439.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001738/0.3608, allocations: 0.9086 MB / 440.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.493e-05/0.3609, allocations: 0 / 440.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.053e-05/0.3609, allocations: 36 kB / 440.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.361, allocations: 20 kB / 440.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001855/0.3628, allocations: 0.8003 MB / 440.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004358/0.3672, allocations: 2.386 MB / 443.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/0.3683, allocations: 0.5172 MB / 443.8 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005159/0.3688, allocations: 218.2 kB / 444.1 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.254e-05/0.3688, allocations: 24.47 kB / 444.1 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.3689, allocations: 39.06 kB / 444.1 MB, free: 9.355 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 1.963e-06/0.3689, allocations: 0 / 444.1 MB, free: 9.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007813/0.3767, allocations: 2.191 MB / 446.3 MB, free: 7.121 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.16e-05/0.3768, allocations: 85.61 kB / 446.4 MB, free: 7.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003452/0.3771, allocations: 304.4 kB / 446.7 MB, free: 6.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.72e-05/0.3772, allocations: 33.7 kB / 446.7 MB, free: 6.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002654/0.3774, allocations: 375.9 kB / 447.1 MB, free: 6.305 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001849/0.3776, allocations: 218.1 kB / 447.3 MB, free: 6.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002543/0.3779, allocations: 154.5 kB / 447.5 MB, free: 5.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.378, allocations: 350.7 kB / 447.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007879/0.3788, allocations: 273.8 kB / 448.1 MB, free: 5.316 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009803/0.3798, allocations: 0.5381 MB / 448.6 MB, free: 4.664 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001726/0.3815, allocations: 0.8088 MB / 449.4 MB, free: 3.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.3815, allocations: 0 / 449.4 MB, free: 3.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002115/0.3836, allocations: 0.9089 MB / 450.3 MB, free: 2.836 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.3837, allocations: 11.94 kB / 450.3 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.3837, allocations: 8 kB / 450.3 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002406/0.3839, allocations: 65.67 kB / 450.4 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008683/0.3848, allocations: 207.7 kB / 450.6 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002331/0.3871, allocations: 2.646 MB / 453.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000675/0.3878, allocations: 72.02 kB / 453.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-05/0.3879, allocations: 43.92 kB / 453.4 MB, free: 15.55 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.0003166/0.3882, allocations: 211.1 kB / 453.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.482e-05/0.3883, allocations: 43.7 kB / 453.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001984/0.3903, allocations: 0.7453 MB / 454.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-06/0.3903, allocations: 8 kB / 454.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.3903, allocations: 0 / 454.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.3903, allocations: 7.922 kB / 454.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002731/0.393, allocations: 1.309 MB / 455.7 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.393, allocations: 4 kB / 455.7 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006881/0.3937, allocations: 135.8 kB / 455.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001807/0.3939, allocations: 61.67 kB / 455.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.337e-05/0.3939, allocations: 15.98 kB / 455.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002121/0.3961, allocations: 2.638 MB / 458.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3961, allocations: 4.125 kB / 458.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002609/0.3987, allocations: 1.089 MB / 459.6 MB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002261/0.3989, allocations: 83.67 kB / 459.7 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.676e-05/0.399, allocations: 16.06 kB / 459.7 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005153/0.3995, allocations: 47.94 kB / 459.8 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/0.3996, allocations: 52.41 kB / 459.8 MB, free: 8.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.282e-05/0.3997, allocations: 19.98 kB / 459.8 MB, free: 8.738 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002422/0.3999, allocations: 203.1 kB / 460 MB, free: 8.535 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3999, allocations: 0 / 460 MB, free: 8.535 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007938/0.4007, allocations: 183.9 kB / 460.2 MB, free: 8.355 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.003177/0.4039, allocations: 1.692 MB / 461.9 MB, free: 6.629 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002227/0.4061, allocations: 0.8885 MB / 462.8 MB, free: 5.723 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4061, allocations: 0 / 462.8 MB, free: 5.723 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001054/0.4072, allocations: 0.5195 MB / 463.3 MB, free: 5.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004589/0.4076, allocations: 52.58 kB / 463.4 MB, free: 5.125 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00956/0.4172, allocations: 5.157 MB / 468.5 MB, free: 15.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.4175, allocations: 290.4 kB / 468.8 MB, free: 15.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003925/0.4179, allocations: 92.52 kB / 468.9 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003669/0.4182, allocations: 235.3 kB / 469.1 MB, free: 15.04 MB / 382.1 MB Notification: Performance of SimCode: time 7.42e-07/0.4182, allocations: 0 / 469.1 MB, free: 15.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04224/0.4605, allocations: 11.9 MB / 481 MB, free: 3.383 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14/14.46, allocations: 18.86 kB / 481 MB, free: 3.367 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.01373974001035]