Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.001319/0.001319, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.001387/0.001387, allocations: 218.9 kB / 21.46 MB, free: 1.586 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.397/1.397, allocations: 230.6 MB / 254.8 MB, free: 15.21 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.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_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_1_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.002013/0.002013, allocations: 52.06 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1345, allocations: 53.34 MB / 427 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.008412/0.1429, allocations: 5.079 MB / 432.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004895/0.1478, allocations: 2.168 MB / 434.3 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009812/0.1487, allocations: 16 kB / 434.3 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00398/0.1527, allocations: 1.407 MB / 435.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001855/0.1546, allocations: 433.3 kB / 436.1 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002978/0.1576, allocations: 1.218 MB / 437.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001615/0.1592, allocations: 0.7355 MB / 438.1 MB, free: 9.676 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001259/0.1604, allocations: 0.5011 MB / 438.6 MB, free: 9.164 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007413/0.1612, allocations: 346.8 kB / 438.9 MB, free: 8.824 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008265/0.162, allocations: 422.3 kB / 439.3 MB, free: 8.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001945/0.1622, allocations: 72 kB / 439.4 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001214/0.1634, allocations: 407.6 kB / 439.8 MB, free: 7.941 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002097/0.1636, allocations: 167.4 kB / 440 MB, free: 7.777 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005367/0.1642, allocations: 382.1 kB / 440.3 MB, free: 7.402 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002459/0.1666, allocations: 1.206 MB / 441.5 MB, free: 6.191 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.1666, allocations: 0 / 441.5 MB, free: 6.191 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.716e-06/0.1666, allocations: 0 / 441.5 MB, free: 6.191 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.702e-05/0.1667, allocations: 3.938 kB / 441.6 MB, free: 6.188 MB / 366.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.005471/0.1722, allocations: 1.481 MB / 443 MB, free: 4.652 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.796e-05/0.1722, allocations: 8.031 kB / 443 MB, free: 4.645 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.677e-05/0.1723, allocations: 22.19 kB / 443.1 MB, free: 4.625 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002472/0.1725, allocations: 131.4 kB / 443.2 MB, free: 4.488 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0027/0.1752, allocations: 372.1 kB / 443.6 MB, free: 4.125 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004842/0.1757, allocations: 252.1 kB / 443.8 MB, free: 3.836 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/0.1758, allocations: 62.38 kB / 443.9 MB, free: 3.773 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002264/0.176, allocations: 88.38 kB / 443.9 MB, free: 3.688 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002171/0.1782, allocations: 0.8717 MB / 444.8 MB, free: 2.805 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.348e-05/0.1782, allocations: 11.89 kB / 444.8 MB, free: 2.793 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.059e-05/0.1783, allocations: 36 kB / 444.9 MB, free: 2.758 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.743e-05/0.1784, allocations: 20 kB / 444.9 MB, free: 2.738 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002004/0.1804, allocations: 0.7886 MB / 445.7 MB, free: 1.945 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2716/0.452, allocations: 3.006 MB / 448.7 MB, free: 22.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/0.4532, allocations: 0.965 MB / 449.6 MB, free: 21.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004957/0.4537, allocations: 216.2 kB / 449.9 MB, free: 21.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001624/0.4538, allocations: 182 kB / 450 MB, free: 21.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.4539, allocations: 45.83 kB / 450.1 MB, free: 21.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 3.166e-06/0.4539, allocations: 0 / 450.1 MB, free: 21.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.007546/0.4614, allocations: 2.388 MB / 452.5 MB, free: 20.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.204e-05/0.4615, allocations: 85 kB / 452.5 MB, free: 20.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003523/0.4618, allocations: 303 kB / 452.8 MB, free: 20.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.864e-05/0.4619, allocations: 39.33 kB / 452.9 MB, free: 20.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002074/0.4621, allocations: 374.4 kB / 453.2 MB, free: 20.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.4622, allocations: 225.5 kB / 453.5 MB, free: 20.26 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002473/0.4625, allocations: 144.3 kB / 453.6 MB, free: 20.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.4626, allocations: 351.8 kB / 454 MB, free: 19.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007778/0.4634, allocations: 269.7 kB / 454.2 MB, free: 19.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009293/0.4643, allocations: 0.5023 MB / 454.7 MB, free: 19.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001658/0.4659, allocations: 0.8098 MB / 455.5 MB, free: 18.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.4659, allocations: 2.312 kB / 455.5 MB, free: 18.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002154/0.4681, allocations: 0.8942 MB / 456.4 MB, free: 18.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.4681, allocations: 8.938 kB / 456.4 MB, free: 18.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-05/0.4681, allocations: 12.2 kB / 456.4 MB, free: 18.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002897/0.4684, allocations: 63.41 kB / 456.5 MB, free: 18.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008841/0.4693, allocations: 203.6 kB / 456.7 MB, free: 18.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001734/0.4711, allocations: 2.864 MB / 459.6 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006676/0.4717, allocations: 61.25 kB / 459.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.4718, allocations: 39.06 kB / 459.7 MB, free: 15.66 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.0003603/0.4722, allocations: 211.1 kB / 459.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.4723, allocations: 48.08 kB / 459.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002141/0.4744, allocations: 0.7283 MB / 460.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/0.4744, allocations: 6.281 kB / 460.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/0.4745, allocations: 5.828 kB / 460.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.4745, allocations: 5.594 kB / 460.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00289/0.4774, allocations: 1.414 MB / 462.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.4774, allocations: 0 / 462.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006514/0.478, allocations: 127.1 kB / 462.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001587/0.4782, allocations: 59.47 kB / 462.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.019e-05/0.4782, allocations: 15.16 kB / 462.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001487/0.4797, allocations: 2.85 MB / 465.1 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.4797, allocations: 3.938 kB / 465.1 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002624/0.4823, allocations: 1.079 MB / 466.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.4825, allocations: 158.6 kB / 466.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.962e-05/0.4826, allocations: 12.12 kB / 466.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000479/0.483, allocations: 45.05 kB / 466.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.4832, allocations: 52.94 kB / 466.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.079e-05/0.4832, allocations: 20.48 kB / 466.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002159/0.4834, allocations: 207.9 kB / 466.7 MB, free: 10.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4834, allocations: 0 / 466.7 MB, free: 10.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008242/0.4843, allocations: 183.2 kB / 466.9 MB, free: 10.73 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.003018/0.4873, allocations: 1.678 MB / 468.6 MB, free: 9.684 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002104/0.4894, allocations: 0.8791 MB / 469.4 MB, free: 9.254 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4894, allocations: 0 / 469.4 MB, free: 9.254 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009322/0.4903, allocations: 0.5238 MB / 470 MB, free: 8.938 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004714/0.4908, allocations: 41.09 kB / 470 MB, free: 8.914 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008908/0.4997, allocations: 5.079 MB / 475.1 MB, free: 5.789 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000441/0.5001, allocations: 0.8803 MB / 476 MB, free: 5.086 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003553/0.5005, allocations: 88.03 kB / 476 MB, free: 5.059 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000323/0.5008, allocations: 229.1 kB / 476.3 MB, free: 4.891 MB / 366.1 MB Notification: Performance of SimCode: time 1.262e-06/0.5008, allocations: 3.938 kB / 476.3 MB, free: 4.887 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4013/0.9021, allocations: 11.42 MB / 487.7 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/13.94, allocations: 19.2 kB / 487.7 MB, free: 0.5 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 16.505048890947364]