Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.001269/0.001269, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.00143/0.00143, allocations: 211.4 kB / 23.73 MB, free: 4.387 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.403/1.403, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 47.94 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2631, allocations: 53.37 MB / 431.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004419/0.2675, allocations: 2.674 MB / 433.8 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001501/0.269, allocations: 0.7555 MB / 434.5 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001892/0.2692, allocations: 4 kB / 434.5 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002698/0.2694, allocations: 67.38 kB / 434.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003759/0.2698, allocations: 103.2 kB / 434.7 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003917/0.2702, allocations: 107.9 kB / 434.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004544/0.2707, allocations: 402.4 kB / 435.2 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000231/0.2709, allocations: 93.02 kB / 435.3 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003174/0.2712, allocations: 159.4 kB / 435.4 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002183/0.2714, allocations: 155.2 kB / 435.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.453e-05/0.2715, allocations: 36 kB / 435.6 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.257e-05/0.2715, allocations: 32 kB / 435.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.528e-05/0.2716, allocations: 75.73 kB / 435.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000154/0.2718, allocations: 155.2 kB / 435.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004769/0.2722, allocations: 414.2 kB / 436.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2723, allocations: 0 / 436.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2723, allocations: 0 / 436.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.2723, allocations: 0 / 436.3 MB, free: 1.41 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001214/0.2735, allocations: 0.5869 MB / 436.9 MB, free: 0.793 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.2735, allocations: 12.03 kB / 436.9 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.422e-05/0.2736, allocations: 66.72 kB / 436.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.834e-05/0.2737, allocations: 40.7 kB / 437 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004355/0.2741, allocations: 221.7 kB / 437.2 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.445e-05/0.2741, allocations: 25.03 kB / 437.2 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.623e-05/0.2742, allocations: 28.38 kB / 437.3 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005932/0.2748, allocations: 298.2 kB / 437.5 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.2748, allocations: 0 / 437.5 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.784e-05/0.2748, allocations: 12 kB / 437.6 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.2748, allocations: 8 kB / 437.6 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006346/0.2755, allocations: 258.5 kB / 437.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001705/0.2772, allocations: 0.9243 MB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003817/0.2776, allocations: 146.5 kB / 438.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001858/0.2777, allocations: 60.83 kB / 438.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.345e-05/0.2778, allocations: 7.984 kB / 439 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.696e-05/0.2778, allocations: 34.56 kB / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.543e-06/0.2778, allocations: 7.938 kB / 439 MB, free: 14.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.00211/0.2799, allocations: 0.5924 MB / 439.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.73e-05/0.28, allocations: 55.41 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000364/0.2803, allocations: 296 kB / 439.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.2804, allocations: 33.7 kB / 440 MB, free: 13.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001823/0.2806, allocations: 240 kB / 440.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.105e-05/0.2806, allocations: 79.38 kB / 440.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001202/0.2807, allocations: 61.66 kB / 440.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.2809, allocations: 334.8 kB / 440.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003083/0.2812, allocations: 99.92 kB / 440.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003844/0.2816, allocations: 196 kB / 440.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006779/0.2823, allocations: 297.1 kB / 441.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.2823, allocations: 0 / 441.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008796/0.2832, allocations: 401 kB / 441.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.2832, allocations: 8 kB / 441.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.2832, allocations: 4 kB / 441.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000252/0.2835, allocations: 70.02 kB / 441.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003337/0.2838, allocations: 71.89 kB / 441.8 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00227/0.2861, allocations: 2.622 MB / 444.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002856/0.2864, allocations: 23.97 kB / 444.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.497e-05/0.2864, allocations: 12 kB / 444.4 MB, free: 8.688 MB / 350.1 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.000176/0.2866, allocations: 161.7 kB / 444.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.912e-05/0.2866, allocations: 27.81 kB / 444.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.653e-05/0.2867, allocations: 38.36 kB / 444.7 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.2867, allocations: 0 / 444.7 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.2867, allocations: 4 kB / 444.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.2867, allocations: 4.125 kB / 444.7 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003593/0.2871, allocations: 272.6 kB / 444.9 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.391e-06/0.2871, allocations: 7.984 kB / 444.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000211/0.2873, allocations: 39.91 kB / 445 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001685/0.2874, allocations: 57.67 kB / 445 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/0.2875, allocations: 4 kB / 445 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002093/0.2896, allocations: 2.63 MB / 447.7 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2896, allocations: 0 / 447.7 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007615/0.2903, allocations: 371.8 kB / 448 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.385e-05/0.2904, allocations: 35.73 kB / 448.1 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.167e-05/0.2904, allocations: 4 kB / 448.1 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002163/0.2906, allocations: 20.05 kB / 448.1 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.708e-05/0.2907, allocations: 19.95 kB / 448.1 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.2907, allocations: 4 kB / 448.1 MB, free: 4.699 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002075/0.2909, allocations: 203.1 kB / 448.3 MB, free: 4.504 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2909, allocations: 0 / 448.3 MB, free: 4.504 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003988/0.2913, allocations: 79.94 kB / 448.4 MB, free: 4.426 MB / 350.1 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.001085/0.2924, allocations: 0.9129 MB / 449.3 MB, free: 3.477 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009929/0.2934, allocations: 461.2 kB / 449.8 MB, free: 3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2934, allocations: 0 / 449.8 MB, free: 3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005461/0.2939, allocations: 346.7 kB / 450.1 MB, free: 2.637 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003587/0.2943, allocations: 31.27 kB / 450.1 MB, free: 2.605 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004668/0.299, allocations: 3.041 MB / 453.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001796/0.2991, allocations: 172.7 kB / 453.3 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001344/0.2993, allocations: 30.31 kB / 453.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/0.2994, allocations: 99.41 kB / 453.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.2994, allocations: 0 / 453.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04177/0.3412, allocations: 6.408 MB / 459.9 MB, free: 8.863 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.07, allocations: 11.75 kB / 459.9 MB, free: 8.855 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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: 14.46712419576943]