Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.001327/0.001327, allocations: 116.2 kB / 20.43 MB, free: 1.301 MB / 14.72 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.001378/0.001378, allocations: 186.2 kB / 23.72 MB, free: 4.555 MB / 14.72 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 1.427/1.427, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 47.92 kB / 370.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2944, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004347/0.2988, allocations: 2.874 MB / 425.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.3001, allocations: 0.7516 MB / 426.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.3002, allocations: 4 kB / 426.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002158/0.3005, allocations: 67.42 kB / 426.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002598/0.3007, allocations: 99.17 kB / 426.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002628/0.301, allocations: 111.7 kB / 426.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004234/0.3014, allocations: 402.5 kB / 426.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002031/0.3016, allocations: 95.34 kB / 427 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002487/0.3019, allocations: 167.4 kB / 427.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002502/0.3021, allocations: 171.2 kB / 427.4 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.351e-05/0.3022, allocations: 32 kB / 427.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.328e-05/0.3022, allocations: 32 kB / 427.4 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.507e-05/0.3023, allocations: 87.67 kB / 427.5 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001596/0.3024, allocations: 171.1 kB / 427.7 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004342/0.3029, allocations: 406.7 kB / 428.1 MB, free: 9.148 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3029, allocations: 0 / 428.1 MB, free: 9.148 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3029, allocations: 0 / 428.1 MB, free: 9.148 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.3029, allocations: 3.938 kB / 428.1 MB, free: 9.145 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.001233/0.3041, allocations: 0.587 MB / 428.7 MB, free: 8.527 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.3042, allocations: 12.03 kB / 428.7 MB, free: 8.516 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.955e-05/0.3042, allocations: 66.72 kB / 428.7 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.942e-05/0.3043, allocations: 40.7 kB / 428.8 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003716/0.3047, allocations: 218.9 kB / 429 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.521e-05/0.3047, allocations: 21.03 kB / 429 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.526e-05/0.3048, allocations: 32.38 kB / 429 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005949/0.3054, allocations: 302.1 kB / 429.3 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.3054, allocations: 0 / 429.3 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.782e-05/0.3054, allocations: 12 kB / 429.3 MB, free: 7.797 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.3054, allocations: 8 kB / 429.4 MB, free: 7.789 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006274/0.306, allocations: 246.5 kB / 429.6 MB, free: 7.551 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001744/0.3078, allocations: 1.045 MB / 430.6 MB, free: 6.414 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003841/0.3082, allocations: 150.5 kB / 430.8 MB, free: 6.258 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.3084, allocations: 64.83 kB / 430.9 MB, free: 6.191 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.804e-05/0.3084, allocations: 3.906 kB / 430.9 MB, free: 6.188 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.3084, allocations: 34.56 kB / 430.9 MB, free: 6.145 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.252e-06/0.3084, allocations: 7.938 kB / 430.9 MB, free: 6.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.00208/0.3105, allocations: 0.591 MB / 431.5 MB, free: 5.535 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.3105, allocations: 55.41 kB / 431.5 MB, free: 5.469 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003082/0.3109, allocations: 277.8 kB / 431.8 MB, free: 5.188 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.3109, allocations: 29.7 kB / 431.8 MB, free: 5.152 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001662/0.311, allocations: 232.1 kB / 432.1 MB, free: 4.918 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.058e-05/0.3111, allocations: 83.3 kB / 432.2 MB, free: 4.836 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.934e-05/0.3112, allocations: 65.66 kB / 432.2 MB, free: 4.766 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.3114, allocations: 342.8 kB / 432.5 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002946/0.3117, allocations: 91.94 kB / 432.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003662/0.312, allocations: 196.2 kB / 432.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006305/0.3127, allocations: 306.9 kB / 433.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.3127, allocations: 4 kB / 433.1 MB, free: 3.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008713/0.3135, allocations: 393.4 kB / 433.5 MB, free: 3.355 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.3136, allocations: 12 kB / 433.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.3136, allocations: 4 kB / 433.5 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002658/0.3138, allocations: 61.66 kB / 433.6 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003519/0.3142, allocations: 75.89 kB / 433.7 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002216/0.3164, allocations: 2.627 MB / 436.3 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002745/0.3167, allocations: 28.09 kB / 436.3 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.476e-05/0.3167, allocations: 16 kB / 436.3 MB, free: 308 kB / 334.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.0001705/0.3169, allocations: 155.2 kB / 436.5 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.053e-05/0.3169, allocations: 23.86 kB / 436.5 MB, free: 120 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.375e-05/0.317, allocations: 30.27 kB / 436.5 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.317, allocations: 4 kB / 436.5 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.317, allocations: 4 kB / 436.6 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.317, allocations: 0 / 436.6 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003963/0.3174, allocations: 308.5 kB / 436.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3174, allocations: 0 / 436.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002318/0.3176, allocations: 35.97 kB / 436.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001632/0.3178, allocations: 57.67 kB / 436.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.3178, allocations: 4 kB / 436.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002134/0.32, allocations: 2.642 MB / 439.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.32, allocations: 0 / 439.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007368/0.3207, allocations: 378.5 kB / 440 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.45e-05/0.3207, allocations: 23.84 kB / 440 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.125e-05/0.3208, allocations: 4.188 kB / 440 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.321, allocations: 15.98 kB / 440 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.956e-05/0.3211, allocations: 27.94 kB / 440 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.233e-05/0.3211, allocations: 4 kB / 440 MB, free: 12.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002071/0.3213, allocations: 197.2 kB / 440.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3213, allocations: 4 kB / 440.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004166/0.3217, allocations: 75.94 kB / 440.3 MB, free: 12.03 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.00106/0.3227, allocations: 0.9119 MB / 441.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000947/0.3237, allocations: 484.9 kB / 441.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3237, allocations: 0 / 441.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005161/0.3242, allocations: 338 kB / 442 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003427/0.3246, allocations: 28.5 kB / 442 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004497/0.3291, allocations: 3.01 MB / 445.1 MB, free: 7.016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004123/0.3295, allocations: 0.7713 MB / 445.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001161/0.3296, allocations: 30.28 kB / 445.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001492/0.3297, allocations: 99.41 kB / 446 MB, free: 6.094 MB / 350.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3297, allocations: 0 / 446 MB, free: 6.094 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03913/0.3689, allocations: 5.995 MB / 451.9 MB, free: 284 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.34, allocations: 3.859 kB / 452 MB, free: 280 kB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_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_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable magFluxSensor.Phi in file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv. Warning: Get data of variable magFluxSensor.Phi from file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv failed! Error: Could not read variable voltageSensor.v in file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv. Warning: Get data of variable voltageSensor.v from file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.831471878998855]