Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001738/0.001738, allocations: 131.4 kB / 17.8 MB, free: 5.215 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002036/0.002036, allocations: 211.6 kB / 20.75 MB, free: 2.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 230.5 MB / 254 MB, free: 15.15 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 63.91 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1288, allocations: 53.37 MB / 426.4 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.007577/0.1364, allocations: 5.084 MB / 431.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004703/0.1411, allocations: 2.172 MB / 433.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005363/0.1416, allocations: 19.94 kB / 433.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003441/0.145, allocations: 1.409 MB / 435.1 MB, free: 11.9 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001441/0.1465, allocations: 428.7 kB / 435.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002465/0.149, allocations: 1.213 MB / 436.7 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001136/0.1501, allocations: 0.7433 MB / 437.4 MB, free: 9.523 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008772/0.151, allocations: 0.5011 MB / 437.9 MB, free: 9.012 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004857/0.1515, allocations: 342.8 kB / 438.3 MB, free: 8.676 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000506/0.152, allocations: 426.3 kB / 438.7 MB, free: 8.258 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.622e-05/0.1521, allocations: 68 kB / 438.7 MB, free: 8.191 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009647/0.153, allocations: 411.6 kB / 439.1 MB, free: 7.789 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001482/0.1532, allocations: 163.4 kB / 439.3 MB, free: 7.629 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003661/0.1535, allocations: 378.1 kB / 439.7 MB, free: 7.258 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001608/0.1551, allocations: 1.21 MB / 440.9 MB, free: 6.043 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1551, allocations: 3.938 kB / 440.9 MB, free: 6.039 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1551, allocations: 4 kB / 440.9 MB, free: 6.035 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.1552, allocations: 0 / 440.9 MB, free: 6.035 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.004559/0.1597, allocations: 1.473 MB / 442.4 MB, free: 4.508 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.1598, allocations: 12.03 kB / 442.4 MB, free: 4.496 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001615/0.1599, allocations: 127.4 kB / 442.5 MB, free: 4.363 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002602/0.1625, allocations: 372.1 kB / 442.9 MB, free: 4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002975/0.1628, allocations: 256.1 kB / 443.1 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.933e-05/0.1629, allocations: 66.38 kB / 443.2 MB, free: 3.645 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.163, allocations: 80.38 kB / 443.3 MB, free: 3.566 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001721/0.1648, allocations: 0.8837 MB / 444.1 MB, free: 2.668 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.577e-05/0.1648, allocations: 3.953 kB / 444.1 MB, free: 2.664 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.831e-05/0.1649, allocations: 32 kB / 444.2 MB, free: 2.633 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.845e-05/0.1649, allocations: 20 kB / 444.2 MB, free: 2.613 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001893/0.1668, allocations: 0.7847 MB / 445 MB, free: 1.828 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2387/0.4055, allocations: 3.014 MB / 448 MB, free: 22.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/0.4069, allocations: 0.9547 MB / 449 MB, free: 21.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005625/0.4075, allocations: 218.1 kB / 449.2 MB, free: 21.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001566/0.4076, allocations: 187.7 kB / 449.3 MB, free: 21.3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.4076, allocations: 38.53 kB / 449.4 MB, free: 21.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.565e-06/0.4077, allocations: 0 / 449.4 MB, free: 21.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.007739/0.4154, allocations: 2.401 MB / 451.8 MB, free: 20.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.043e-05/0.4154, allocations: 84.45 kB / 451.9 MB, free: 20.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004099/0.4158, allocations: 302.9 kB / 452.2 MB, free: 20.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.266e-05/0.4159, allocations: 38.92 kB / 452.2 MB, free: 20.42 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002231/0.4161, allocations: 372.6 kB / 452.6 MB, free: 20.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/0.4163, allocations: 221.2 kB / 452.8 MB, free: 20.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002375/0.4165, allocations: 141.9 kB / 452.9 MB, free: 19.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.387e-05/0.4166, allocations: 355.5 kB / 453.3 MB, free: 19.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000808/0.4174, allocations: 267.9 kB / 453.5 MB, free: 19.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009192/0.4183, allocations: 0.5037 MB / 454 MB, free: 19.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001717/0.42, allocations: 0.807 MB / 454.8 MB, free: 18.69 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-05/0.42, allocations: 2.125 kB / 454.8 MB, free: 18.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002295/0.4223, allocations: 0.8932 MB / 455.7 MB, free: 18.37 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.4224, allocations: 12 kB / 455.8 MB, free: 18.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.912e-05/0.4224, allocations: 12.25 kB / 455.8 MB, free: 18.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002797/0.4227, allocations: 63.25 kB / 455.8 MB, free: 18.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008582/0.4235, allocations: 200 kB / 456 MB, free: 18.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00156/0.4251, allocations: 2.868 MB / 458.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007121/0.4258, allocations: 68.28 kB / 459 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-05/0.4259, allocations: 34.66 kB / 459 MB, free: 15.42 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.0003223/0.4262, allocations: 215.8 kB / 459.2 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.4263, allocations: 46.94 kB / 459.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002087/0.4284, allocations: 0.726 MB / 460 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.4284, allocations: 5.5 kB / 460 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.4284, allocations: 1.219 kB / 460 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.4285, allocations: 8.156 kB / 460 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003133/0.4316, allocations: 1.419 MB / 461.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.4316, allocations: 0 / 461.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006893/0.4323, allocations: 129.4 kB / 461.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002038/0.4325, allocations: 60.12 kB / 461.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.493e-05/0.4325, allocations: 14.89 kB / 461.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001556/0.4341, allocations: 2.85 MB / 464.5 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.4341, allocations: 3.938 kB / 464.5 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002702/0.4368, allocations: 1.076 MB / 465.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002355/0.437, allocations: 166 kB / 465.7 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.251e-05/0.4371, allocations: 10.95 kB / 465.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005311/0.4376, allocations: 45.48 kB / 465.8 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.4378, allocations: 48.59 kB / 465.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-05/0.4378, allocations: 19.52 kB / 465.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002351/0.4381, allocations: 209.2 kB / 466 MB, free: 10.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4381, allocations: 0 / 466 MB, free: 10.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009481/0.439, allocations: 179 kB / 466.2 MB, free: 10.48 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.003164/0.4422, allocations: 1.676 MB / 467.9 MB, free: 9.434 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002342/0.4445, allocations: 0.8796 MB / 468.8 MB, free: 9.004 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4445, allocations: 1.188 kB / 468.8 MB, free: 9.004 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001039/0.4456, allocations: 0.518 MB / 469.3 MB, free: 8.691 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005596/0.4461, allocations: 47.09 kB / 469.3 MB, free: 8.664 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009381/0.4555, allocations: 5.075 MB / 474.4 MB, free: 5.535 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003919/0.4559, allocations: 0.8852 MB / 475.3 MB, free: 4.828 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003609/0.4563, allocations: 89.17 kB / 475.4 MB, free: 4.801 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003366/0.4566, allocations: 225.4 kB / 475.6 MB, free: 4.637 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4566, allocations: 0 / 475.6 MB, free: 4.637 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04733/0.5039, allocations: 11.37 MB / 487 MB, free: 260 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/13.64, allocations: 31.97 kB / 487 MB, free: 236 kB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv","/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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable magFluxSensor.Phi.re in file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv. Warning: Get data of variable magFluxSensor.Phi.re from file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv failed! Error: Could not read variable magFluxSensor.Phi.im in file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv. Warning: Get data of variable magFluxSensor.Phi.im from file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv failed! Error: Could not read variable voltageSensor.v.re in file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv. Warning: Get data of variable voltageSensor.v.re from file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv failed! Error: Could not read variable voltageSensor.v.im in file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv. Warning: Get data of variable voltageSensor.v.im from file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.286707798950374]