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.001737/0.001737, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.002305/0.002305, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.499/1.499, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.001579/0.001579, allocations: 51.92 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.2959, allocations: 53.36 MB / 431.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004565/0.3005, allocations: 2.885 MB / 434 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001677/0.3022, allocations: 0.806 MB / 434.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000186/0.3024, allocations: 7.938 kB / 434.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002446/0.3026, allocations: 59.44 kB / 434.9 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000307/0.3029, allocations: 107.2 kB / 435 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002822/0.3032, allocations: 107.8 kB / 435.1 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004418/0.3036, allocations: 398.5 kB / 435.5 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002112/0.3039, allocations: 101 kB / 435.6 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000324/0.3042, allocations: 167.3 kB / 435.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002501/0.3044, allocations: 171.2 kB / 435.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.377e-05/0.3045, allocations: 39.94 kB / 436 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.45e-05/0.3045, allocations: 32 kB / 436 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.698e-05/0.3046, allocations: 87.69 kB / 436.1 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000176/0.3048, allocations: 179.1 kB / 436.3 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004982/0.3053, allocations: 402.3 kB / 436.6 MB, free: 1.301 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3053, allocations: 0 / 436.6 MB, free: 1.301 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3053, allocations: 0 / 436.6 MB, free: 1.301 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.3053, allocations: 0 / 436.6 MB, free: 1.301 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.001275/0.3066, allocations: 0.5908 MB / 437.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.3066, allocations: 8.031 kB / 437.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.276e-05/0.3067, allocations: 70.7 kB / 437.3 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.152e-05/0.3068, allocations: 40.7 kB / 437.4 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004192/0.3072, allocations: 225.7 kB / 437.6 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/0.3072, allocations: 29.03 kB / 437.6 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.244e-05/0.3073, allocations: 32.31 kB / 437.6 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006368/0.3079, allocations: 294.2 kB / 437.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.3079, allocations: 0 / 437.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.961e-05/0.308, allocations: 16 kB / 437.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.308, allocations: 8 kB / 437.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006395/0.3086, allocations: 250.5 kB / 438.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001862/0.3105, allocations: 1.045 MB / 439.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003978/0.3109, allocations: 154.4 kB / 439.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001919/0.3111, allocations: 63.62 kB / 439.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.976e-05/0.3111, allocations: 4 kB / 439.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/0.3111, allocations: 30.56 kB / 439.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.542e-06/0.3111, allocations: 0 / 439.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002126/0.3133, allocations: 0.5995 MB / 440.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.3133, allocations: 51.41 kB / 440.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003314/0.3136, allocations: 296.1 kB / 440.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.3137, allocations: 29.7 kB / 440.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/0.3138, allocations: 228.1 kB / 440.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.093e-05/0.3139, allocations: 83.36 kB / 440.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.314, allocations: 61.66 kB / 440.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.3141, allocations: 338.8 kB / 441.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002979/0.3144, allocations: 95.92 kB / 441.2 MB, free: 12.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003668/0.3148, allocations: 195.9 kB / 441.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006388/0.3155, allocations: 309.1 kB / 441.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.3155, allocations: 4 kB / 441.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009001/0.3164, allocations: 397.4 kB / 442.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.3164, allocations: 4 kB / 442.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.3164, allocations: 4 kB / 442.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002695/0.3167, allocations: 61.67 kB / 442.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003474/0.317, allocations: 75.83 kB / 442.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002355/0.3194, allocations: 2.634 MB / 444.9 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000318/0.3197, allocations: 27.98 kB / 444.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.702e-05/0.3197, allocations: 15.98 kB / 444.9 MB, free: 8.426 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.0001892/0.3199, allocations: 161.6 kB / 445.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.628e-05/0.3199, allocations: 27.81 kB / 445.1 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.797e-05/0.32, allocations: 38.36 kB / 445.2 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.32, allocations: 0 / 445.2 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.32, allocations: 4 kB / 445.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.32, allocations: 0 / 445.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003924/0.3204, allocations: 308.5 kB / 445.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3204, allocations: 0 / 445.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002188/0.3206, allocations: 35.97 kB / 445.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000183/0.3208, allocations: 61.61 kB / 445.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.3208, allocations: 4 kB / 445.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002142/0.323, allocations: 2.626 MB / 448.2 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.323, allocations: 0 / 448.2 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007752/0.3238, allocations: 378.7 kB / 448.6 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.7e-05/0.3238, allocations: 31.8 kB / 448.6 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.434e-05/0.3239, allocations: 8 kB / 448.6 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002085/0.3241, allocations: 15.98 kB / 448.6 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.2e-05/0.3241, allocations: 23.91 kB / 448.6 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.3241, allocations: 7.984 kB / 448.7 MB, free: 4.406 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002196/0.3244, allocations: 199.1 kB / 448.8 MB, free: 4.215 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3244, allocations: 0 / 448.8 MB, free: 4.215 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004199/0.3248, allocations: 76 kB / 448.9 MB, free: 4.141 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.001072/0.3259, allocations: 0.9126 MB / 449.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009868/0.3268, allocations: 469 kB / 450.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3269, allocations: 0 / 450.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005364/0.3274, allocations: 350 kB / 450.6 MB, free: 2.344 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003624/0.3277, allocations: 25.56 kB / 450.7 MB, free: 2.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004595/0.3323, allocations: 3.04 MB / 453.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004334/0.3328, allocations: 0.783 MB / 454.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001203/0.3329, allocations: 22.3 kB / 454.5 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.3331, allocations: 111.3 kB / 454.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3331, allocations: 0 / 454.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04057/0.3736, allocations: 6.025 MB / 460.6 MB, free: 8.328 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.54, allocations: 8.672 kB / 460.6 MB, free: 8.32 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 & python3 -m fmpy simulate --output-file Modelica_4.1.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_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.csv","/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] "Error: Could not read variable magFluxSensor.Phi in file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv. Warning: Get data of variable magFluxSensor.Phi from file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv failed! Error: Could not read variable voltageSensor.v in file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv. Warning: Get data of variable voltageSensor.v from file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.068976312999439]