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.001854/0.001854, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002143/0.002143, allocations: 194.9 kB / 23.71 MB, free: 4.406 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.448/1.448, allocations: 225.7 MB / 252.5 MB, free: 12.8 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.001593/0.001593, allocations: 47.92 kB / 370.4 MB, free: 9.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2283/0.2299, allocations: 52.18 MB / 422.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004174/0.2341, allocations: 2.654 MB / 425.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001232/0.2353, allocations: 0.7088 MB / 425.9 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.2354, allocations: 4 kB / 425.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002082/0.2356, allocations: 67.42 kB / 426 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002559/0.2359, allocations: 99.17 kB / 426.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002739/0.2362, allocations: 107.8 kB / 426.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004303/0.2366, allocations: 394.5 kB / 426.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001915/0.2368, allocations: 93.03 kB / 426.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002507/0.237, allocations: 167.4 kB / 426.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002075/0.2372, allocations: 151.2 kB / 427 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.384e-05/0.2373, allocations: 32 kB / 427 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.243e-05/0.2374, allocations: 36 kB / 427.1 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.328e-05/0.2374, allocations: 83.62 kB / 427.1 MB, free: 9.777 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001541/0.2376, allocations: 151.3 kB / 427.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004336/0.238, allocations: 402.3 kB / 427.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.238, allocations: 0 / 427.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.238, allocations: 0 / 427.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.238, allocations: 0 / 427.7 MB, free: 9.234 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.001175/0.2392, allocations: 0.587 MB / 428.3 MB, free: 8.617 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2393, allocations: 8.031 kB / 428.3 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.539e-05/0.2393, allocations: 70.66 kB / 428.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.517e-05/0.2394, allocations: 44.7 kB / 428.4 MB, free: 8.488 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003702/0.2398, allocations: 218.9 kB / 428.6 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.742e-05/0.2398, allocations: 25.03 kB / 428.6 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.421e-05/0.2399, allocations: 28.38 kB / 428.7 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006194/0.2405, allocations: 290.2 kB / 428.9 MB, free: 7.906 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.2405, allocations: 0 / 428.9 MB, free: 7.906 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.02e-05/0.2405, allocations: 16 kB / 429 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.2405, allocations: 8 kB / 429 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006315/0.2412, allocations: 254.5 kB / 429.2 MB, free: 7.637 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001709/0.2429, allocations: 0.9244 MB / 430.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004029/0.2433, allocations: 154.5 kB / 430.3 MB, free: 6.473 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001886/0.2435, allocations: 60.77 kB / 430.3 MB, free: 6.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.2435, allocations: 7.906 kB / 430.4 MB, free: 6.402 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.2435, allocations: 34.56 kB / 430.4 MB, free: 6.359 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.423e-06/0.2435, allocations: 0 / 430.4 MB, free: 6.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.002082/0.2456, allocations: 0.593 MB / 431 MB, free: 5.758 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.47e-05/0.2457, allocations: 63.33 kB / 431 MB, free: 5.684 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003186/0.246, allocations: 285.7 kB / 431.3 MB, free: 5.395 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.246, allocations: 29.7 kB / 431.4 MB, free: 5.359 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001751/0.2462, allocations: 236 kB / 431.6 MB, free: 5.121 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.11e-05/0.2463, allocations: 79.31 kB / 431.7 MB, free: 5.043 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.2464, allocations: 61.66 kB / 431.7 MB, free: 4.977 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.2465, allocations: 338.8 kB / 432.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002994/0.2468, allocations: 99.92 kB / 432.1 MB, free: 4.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003762/0.2472, allocations: 196.1 kB / 432.3 MB, free: 4.301 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006485/0.2478, allocations: 306.3 kB / 432.6 MB, free: 3.961 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2478, allocations: 0 / 432.6 MB, free: 3.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008951/0.2487, allocations: 397.4 kB / 433 MB, free: 3.562 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.2488, allocations: 8 kB / 433 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.2488, allocations: 4 kB / 433 MB, free: 3.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002411/0.249, allocations: 57.67 kB / 433.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003351/0.2493, allocations: 79.83 kB / 433.2 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002289/0.2516, allocations: 2.623 MB / 435.8 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002713/0.2519, allocations: 19.94 kB / 435.8 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.488e-05/0.2519, allocations: 20.12 kB / 435.8 MB, free: 0.5195 MB / 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.0001635/0.2521, allocations: 149.7 kB / 436 MB, free: 372 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.312e-05/0.2522, allocations: 27.84 kB / 436 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.007e-05/0.2522, allocations: 30.28 kB / 436 MB, free: 316 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.2522, allocations: 0 / 436 MB, free: 316 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.2522, allocations: 3.984 kB / 436 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2522, allocations: 4 kB / 436 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003731/0.2526, allocations: 272.6 kB / 436.3 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2526, allocations: 4 kB / 436.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002113/0.2528, allocations: 40.11 kB / 436.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001686/0.253, allocations: 61.59 kB / 436.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.253, allocations: 4 kB / 436.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002143/0.2552, allocations: 2.622 MB / 439 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.2552, allocations: 4.031 kB / 439 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007553/0.2559, allocations: 382.5 kB / 439.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.043e-05/0.256, allocations: 23.86 kB / 439.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.212e-05/0.256, allocations: 7.938 kB / 439.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002198/0.2562, allocations: 19.91 kB / 439.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.732e-05/0.2563, allocations: 19.97 kB / 439.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.2563, allocations: 11.94 kB / 439.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002124/0.2565, allocations: 193.2 kB / 439.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2565, allocations: 0 / 439.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004003/0.2569, allocations: 80 kB / 439.8 MB, free: 12.27 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.001087/0.258, allocations: 0.9121 MB / 440.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009408/0.2589, allocations: 469 kB / 441.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2589, allocations: 0 / 441.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005269/0.2595, allocations: 350.1 kB / 441.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.2598, allocations: 28.47 kB / 441.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00453/0.2643, allocations: 3.016 MB / 444.5 MB, free: 7.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001648/0.2645, allocations: 164.8 kB / 444.7 MB, free: 7.086 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001328/0.2646, allocations: 34.31 kB / 444.7 MB, free: 7.051 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/0.2648, allocations: 95.41 kB / 444.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2648, allocations: 0 / 444.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04372/0.3085, allocations: 6.369 MB / 451.2 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/11.99, allocations: 3.859 kB / 451.2 MB, free: 0.7852 MB / 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.4653274808079]