Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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.0008398/0.0008398, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007982/0.0007982, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8469/0.8469, allocations: 173.4 MB / 200.5 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.081e-05/1.236e-05, allocations: 2.281 kB / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.002782/0.002794, allocations: 2.625 MB / 321.1 MB, free: 3.719 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008581/0.003652, allocations: 0.7203 MB / 321.8 MB, free: 2.992 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.003772, allocations: 4 kB / 321.8 MB, free: 2.988 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001794/0.003951, allocations: 63.44 kB / 321.8 MB, free: 2.926 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000206/0.004157, allocations: 103.1 kB / 321.9 MB, free: 2.824 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002058/0.004363, allocations: 119.7 kB / 322.1 MB, free: 2.707 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000252/0.004615, allocations: 396.9 kB / 322.4 MB, free: 2.32 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.004769, allocations: 91.33 kB / 322.5 MB, free: 2.23 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002123/0.004981, allocations: 231.4 kB / 322.8 MB, free: 2.004 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.005105, allocations: 127.6 kB / 322.9 MB, free: 1.879 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.994e-05/0.005144, allocations: 32 kB / 322.9 MB, free: 1.848 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.156e-05/0.005176, allocations: 32 kB / 322.9 MB, free: 1.816 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.472e-05/0.005221, allocations: 75.75 kB / 323 MB, free: 1.742 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.152e-05/0.005302, allocations: 123.7 kB / 323.1 MB, free: 1.621 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002714/0.005574, allocations: 398.7 kB / 323.5 MB, free: 1.23 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.943e-06/0.005576, allocations: 0 / 323.5 MB, free: 1.23 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.005577, allocations: 0 / 323.5 MB, free: 1.23 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.698e-06/0.005581, allocations: 0 / 323.5 MB, free: 1.23 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0007097/0.006291, allocations: 0.5676 MB / 324.1 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.006328, allocations: 12.86 kB / 324.1 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.936e-05/0.006377, allocations: 70.72 kB / 324.2 MB, free: 0.543 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.248e-05/0.006419, allocations: 36.7 kB / 324.2 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.006648, allocations: 213.8 kB / 324.4 MB, free: 280 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.006674, allocations: 21.03 kB / 324.4 MB, free: 256 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.448e-05/0.006709, allocations: 36.36 kB / 324.5 MB, free: 220 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003644/0.007073, allocations: 286.7 kB / 324.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.007083, allocations: 4.188 kB / 324.8 MB, free: 15.92 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.007104, allocations: 20.12 kB / 324.8 MB, free: 15.9 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.007112, allocations: 8 kB / 324.8 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003545/0.007467, allocations: 250.4 kB / 325 MB, free: 15.65 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.00853, allocations: 0.9214 MB / 326 MB, free: 14.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002309/0.008761, allocations: 145.8 kB / 326.1 MB, free: 14.51 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.979e-05/0.008861, allocations: 64.81 kB / 326.2 MB, free: 14.44 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.008881, allocations: 0 / 326.2 MB, free: 14.44 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.99e-05/0.008901, allocations: 46.44 kB / 326.2 MB, free: 14.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 9.62e-07/0.008902, allocations: 0 / 326.2 MB, free: 14.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001453/0.01035, allocations: 0.5828 MB / 326.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.129e-05/0.01039, allocations: 55.41 kB / 326.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.01057, allocations: 273.8 kB / 327.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.01058, allocations: 29.7 kB / 327.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.751e-05/0.01068, allocations: 232 kB / 327.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.982e-05/0.01072, allocations: 83.27 kB / 327.4 MB, free: 13.1 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.489e-05/0.01078, allocations: 65.66 kB / 327.5 MB, free: 13.03 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.569e-05/0.01087, allocations: 338.8 kB / 327.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.01103, allocations: 91.94 kB / 327.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.01123, allocations: 203.7 kB / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000336/0.01156, allocations: 297.2 kB / 328.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.01156, allocations: 0 / 328.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004723/0.01204, allocations: 401 kB / 328.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.01205, allocations: 8 kB / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.01206, allocations: 4 kB / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001685/0.01222, allocations: 62.03 kB / 328.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001718/0.0124, allocations: 67.89 kB / 329 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00129/0.01369, allocations: 2.63 MB / 331.6 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001318/0.01382, allocations: 23.97 kB / 331.6 MB, free: 8.594 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/0.01383, allocations: 16 kB / 331.6 MB, free: 8.578 MB / 298.7 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 (37): * Single equations (assignments): 35 * 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.0001001/0.01393, allocations: 149.7 kB / 331.8 MB, free: 8.422 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.804e-05/0.01396, allocations: 27.81 kB / 331.8 MB, free: 8.395 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.746e-05/0.014, allocations: 30.27 kB / 331.8 MB, free: 8.371 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.014, allocations: 8.062 kB / 331.8 MB, free: 8.363 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.014, allocations: 0 / 331.8 MB, free: 8.363 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.01401, allocations: 0 / 331.8 MB, free: 8.363 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002142/0.01422, allocations: 276.5 kB / 332.1 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.01422, allocations: 4 kB / 332.1 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.377e-05/0.01432, allocations: 43.89 kB / 332.1 MB, free: 8.004 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.156e-05/0.01441, allocations: 49.69 kB / 332.2 MB, free: 7.949 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-06/0.01442, allocations: 8 kB / 332.2 MB, free: 7.941 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001231/0.01565, allocations: 2.618 MB / 334.8 MB, free: 5.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.01565, allocations: 4.031 kB / 334.8 MB, free: 5.086 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003915/0.01604, allocations: 376.1 kB / 335.2 MB, free: 4.699 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.302e-05/0.01606, allocations: 23.81 kB / 335.2 MB, free: 4.676 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.6e-05/0.01608, allocations: 7.938 kB / 335.2 MB, free: 4.668 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.715e-05/0.01618, allocations: 19.97 kB / 335.2 MB, free: 4.648 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.337e-05/0.01623, allocations: 19.97 kB / 335.3 MB, free: 4.629 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.01624, allocations: 4 kB / 335.3 MB, free: 4.625 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001184/0.01636, allocations: 189.2 kB / 335.5 MB, free: 4.438 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01636, allocations: 0 / 335.5 MB, free: 4.438 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002497/0.01661, allocations: 72 kB / 335.5 MB, free: 4.367 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (18): * Single equations (assignments): 16 * 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.0006895/0.0173, allocations: 0.9012 MB / 336.4 MB, free: 3.434 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005298/0.01783, allocations: 472.7 kB / 336.9 MB, free: 2.949 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.01783, allocations: 4.062 kB / 336.9 MB, free: 2.945 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002487/0.01808, allocations: 337.2 kB / 337.2 MB, free: 2.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002281/0.0183, allocations: 24.5 kB / 337.2 MB, free: 2.566 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002787/0.02109, allocations: 2.937 MB / 340.2 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.812e-05/0.02119, allocations: 164.8 kB / 340.3 MB, free: 15.27 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.895e-05/0.02127, allocations: 30.41 kB / 340.4 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.695e-05/0.02136, allocations: 96.47 kB / 340.5 MB, free: 15.14 MB / 314.7 MB Notification: Performance of SimCode: time 2.91e-07/0.02136, allocations: 0 / 340.5 MB, free: 15.14 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02218/0.04355, allocations: 6.372 MB / 346.8 MB, free: 8.922 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.244/7.287, allocations: 0 / 346.8 MB, free: 8.922 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.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: 8.908225998282433]