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.001368/0.001368, allocations: 113.2 kB / 20.43 MB, free: 1.309 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.001518/0.001518, allocations: 215.7 kB / 23.74 MB, free: 4.535 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.612/1.612, allocations: 230.6 MB / 257.5 MB, free: 7.988 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.001911/0.001911, allocations: 43.92 kB / 377.8 MB, free: 3.227 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3035, allocations: 53.37 MB / 431.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.005709/0.3092, allocations: 2.885 MB / 434 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001955/0.3112, allocations: 0.8099 MB / 434.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000216/0.3114, allocations: 4 kB / 434.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002827/0.3117, allocations: 67.38 kB / 434.9 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000365/0.312, allocations: 111.2 kB / 435 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003158/0.3124, allocations: 99.88 kB / 435.1 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004842/0.3128, allocations: 402.4 kB / 435.5 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002243/0.3131, allocations: 99.33 kB / 435.6 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003429/0.3134, allocations: 163.4 kB / 435.8 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002576/0.3137, allocations: 175.2 kB / 435.9 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.586e-05/0.3137, allocations: 40 kB / 436 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.5e-05/0.3138, allocations: 32 kB / 436 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.16e-05/0.3139, allocations: 79.75 kB / 436.1 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001848/0.314, allocations: 183 kB / 436.3 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005182/0.3146, allocations: 406.7 kB / 436.7 MB, free: 1.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.3146, allocations: 0 / 436.7 MB, free: 1.312 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3146, allocations: 0 / 436.7 MB, free: 1.312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.3146, allocations: 3.938 kB / 436.7 MB, free: 1.309 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.001388/0.316, allocations: 0.5869 MB / 437.2 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.316, allocations: 12.03 kB / 437.3 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.857e-05/0.3161, allocations: 66.72 kB / 437.3 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.726e-05/0.3162, allocations: 40.7 kB / 437.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004931/0.3167, allocations: 221.7 kB / 437.6 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.803e-05/0.3167, allocations: 29.03 kB / 437.6 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.737e-05/0.3168, allocations: 28.38 kB / 437.6 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000637/0.3174, allocations: 294.2 kB / 437.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.3174, allocations: 0 / 437.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.294e-05/0.3175, allocations: 16 kB / 437.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.3175, allocations: 8 kB / 437.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006204/0.3181, allocations: 258.4 kB / 438.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001873/0.32, allocations: 1.037 MB / 439.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003944/0.3204, allocations: 146.5 kB / 439.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001929/0.3206, allocations: 68.81 kB / 439.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.004e-05/0.3206, allocations: 4 kB / 439.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.062e-05/0.3206, allocations: 34.5 kB / 439.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.873e-06/0.3206, allocations: 4 kB / 439.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.00209/0.3227, allocations: 0.5942 MB / 440.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.773e-05/0.3228, allocations: 51.41 kB / 440.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003549/0.3231, allocations: 300 kB / 440.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.3232, allocations: 29.7 kB / 440.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.3234, allocations: 228.1 kB / 440.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.811e-05/0.3234, allocations: 83.36 kB / 440.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.3235, allocations: 61.66 kB / 440.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.3237, allocations: 338.8 kB / 441.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002942/0.324, allocations: 99.94 kB / 441.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003657/0.3244, allocations: 196 kB / 441.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006388/0.325, allocations: 301.1 kB / 441.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.325, allocations: 0 / 441.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008948/0.3259, allocations: 397.4 kB / 442.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.326, allocations: 7.938 kB / 442.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.326, allocations: 4 kB / 442.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002774/0.3262, allocations: 61.73 kB / 442.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003355/0.3266, allocations: 75.89 kB / 442.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002376/0.3289, allocations: 2.634 MB / 444.9 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002806/0.3292, allocations: 27.97 kB / 444.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.141e-05/0.3293, allocations: 8 kB / 444.9 MB, free: 8.453 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.0001811/0.3294, allocations: 161.7 kB / 445.1 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.567e-05/0.3295, allocations: 31.81 kB / 445.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.14e-05/0.3296, allocations: 30.3 kB / 445.2 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3296, allocations: 3.938 kB / 445.2 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.3296, allocations: 4 kB / 445.2 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.3296, allocations: 0 / 445.2 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003931/0.33, allocations: 308.5 kB / 445.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.33, allocations: 4 kB / 445.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002061/0.3302, allocations: 43.89 kB / 445.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001574/0.3303, allocations: 57.81 kB / 445.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.3304, allocations: 7.984 kB / 445.6 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002196/0.3325, allocations: 2.63 MB / 448.2 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3325, allocations: 0 / 448.2 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007894/0.3333, allocations: 374.7 kB / 448.6 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.778e-05/0.3334, allocations: 31.73 kB / 448.6 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.151e-05/0.3334, allocations: 4 kB / 448.6 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.3336, allocations: 15.98 kB / 448.6 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.741e-05/0.3337, allocations: 23.95 kB / 448.6 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.3337, allocations: 8 kB / 448.7 MB, free: 4.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002329/0.3339, allocations: 199.1 kB / 448.8 MB, free: 4.234 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3339, allocations: 0 / 448.8 MB, free: 4.234 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004128/0.3344, allocations: 72 kB / 448.9 MB, free: 4.164 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.001149/0.3355, allocations: 0.9104 MB / 449.8 MB, free: 3.219 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.3365, allocations: 475.2 kB / 450.3 MB, free: 2.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3365, allocations: 0.8125 kB / 450.3 MB, free: 2.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005314/0.3371, allocations: 349.2 kB / 450.6 MB, free: 2.363 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.3374, allocations: 26.59 kB / 450.7 MB, free: 2.336 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004932/0.3424, allocations: 3.023 MB / 453.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004895/0.3429, allocations: 0.783 MB / 454.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001424/0.343, allocations: 30.27 kB / 454.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001791/0.3432, allocations: 103.4 kB / 454.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3432, allocations: 0 / 454.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04509/0.3883, allocations: 6.044 MB / 460.6 MB, free: 8.336 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.49, allocations: 4.734 kB / 460.6 MB, free: 8.332 MB / 366.1 MB " [Timeout remaining time 647] (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: 15.119078579125926]