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.001851/0.001851, allocations: 127.4 kB / 17.79 MB, free: 5.246 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.00221/0.00221, allocations: 208.3 kB / 20.75 MB, free: 2.297 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.563/1.563, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001496/0.001496, allocations: 51.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1174, allocations: 53.33 MB / 426.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004722/0.1221, allocations: 2.867 MB / 429.2 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001695/0.1238, allocations: 0.7944 MB / 430 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001808/0.124, allocations: 4 kB / 430 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000267/0.1243, allocations: 63.44 kB / 430 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003246/0.1246, allocations: 99.17 kB / 430.1 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003285/0.1249, allocations: 111.8 kB / 430.3 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004776/0.1254, allocations: 402.4 kB / 430.6 MB, free: 436 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002218/0.1256, allocations: 94.94 kB / 430.7 MB, free: 336 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003417/0.1259, allocations: 167.4 kB / 430.9 MB, free: 168 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2319/0.3578, allocations: 169.9 kB / 431.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001836/0.358, allocations: 35 kB / 431.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.3581, allocations: 33.84 kB / 431.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.959e-05/0.3582, allocations: 80.2 kB / 431.2 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002444/0.3584, allocations: 179 kB / 431.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006565/0.3591, allocations: 409.7 kB / 431.8 MB, free: 7.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3591, allocations: 0 / 431.8 MB, free: 7.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3591, allocations: 1.312 kB / 431.8 MB, free: 7.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.3591, allocations: 1.562 kB / 431.8 MB, free: 7.84 MB / 350.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.001258/0.3604, allocations: 0.6572 MB / 432.4 MB, free: 7.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.3604, allocations: 9.906 kB / 432.5 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.41e-05/0.3605, allocations: 73.14 kB / 432.5 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.345e-05/0.3606, allocations: 39.48 kB / 432.6 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003528/0.3609, allocations: 280.1 kB / 432.8 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.3609, allocations: 27.73 kB / 432.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.774e-05/0.361, allocations: 35.84 kB / 432.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005884/0.3616, allocations: 294.2 kB / 433.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.3616, allocations: 1.125 kB / 433.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.937e-05/0.3616, allocations: 11.97 kB / 433.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.741e-05/0.3617, allocations: 7.812 kB / 433.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005779/0.3622, allocations: 255 kB / 433.5 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001593/0.3638, allocations: 1.118 MB / 434.6 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004362/0.3643, allocations: 144.1 kB / 434.7 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001905/0.3644, allocations: 65.64 kB / 434.8 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.077e-05/0.3645, allocations: 2.219 kB / 434.8 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.827e-05/0.3645, allocations: 36.48 kB / 434.8 MB, free: 6.371 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.412e-06/0.3645, allocations: 3.25 kB / 434.8 MB, free: 6.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002211/0.3667, allocations: 0.5975 MB / 435.4 MB, free: 6.246 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.708e-05/0.3667, allocations: 58.12 kB / 435.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000367/0.3671, allocations: 288.1 kB / 435.8 MB, free: 6.062 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.3671, allocations: 30.33 kB / 435.8 MB, free: 6.031 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.3672, allocations: 233 kB / 436 MB, free: 5.871 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.439e-05/0.3673, allocations: 76.64 kB / 436.1 MB, free: 5.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.3674, allocations: 62.91 kB / 436.2 MB, free: 5.805 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.912e-05/0.3675, allocations: 337 kB / 436.5 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003041/0.3678, allocations: 98.09 kB / 436.6 MB, free: 5.488 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003671/0.3682, allocations: 201.4 kB / 436.8 MB, free: 5.367 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005987/0.3688, allocations: 299.7 kB / 437.1 MB, free: 5.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3688, allocations: 0.9375 kB / 437.1 MB, free: 5.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009013/0.3697, allocations: 399.9 kB / 437.5 MB, free: 5.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.3697, allocations: 6.359 kB / 437.5 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3697, allocations: 3.375 kB / 437.5 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002553/0.3699, allocations: 61.25 kB / 437.5 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003346/0.3703, allocations: 79.09 kB / 437.6 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001676/0.372, allocations: 2.836 MB / 440.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003507/0.3723, allocations: 22.33 kB / 440.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.131e-05/0.3724, allocations: 19.81 kB / 440.5 MB, free: 2.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.0001821/0.3725, allocations: 160.8 kB / 440.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.109e-05/0.3726, allocations: 28 kB / 440.7 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.099e-05/0.3727, allocations: 29.56 kB / 440.7 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3727, allocations: 2.469 kB / 440.7 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.181e-05/0.3727, allocations: 3.016 kB / 440.7 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.3727, allocations: 1.688 kB / 440.7 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004165/0.3731, allocations: 338.8 kB / 441 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3731, allocations: 0.875 kB / 441 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002128/0.3733, allocations: 40.92 kB / 441.1 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001695/0.3735, allocations: 57.56 kB / 441.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.3735, allocations: 6.719 kB / 441.1 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001834/0.3753, allocations: 2.833 MB / 444 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3753, allocations: 1.922 kB / 444 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008431/0.3762, allocations: 380.2 kB / 444.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.029e-05/0.3763, allocations: 99.55 kB / 444.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.067e-05/0.3763, allocations: 4 kB / 444.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002245/0.3765, allocations: 21.84 kB / 444.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.226e-05/0.3766, allocations: 19.92 kB / 444.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.3766, allocations: 4.188 kB / 444.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002343/0.3769, allocations: 201.1 kB / 444.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3769, allocations: 1.531 kB / 444.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004488/0.3773, allocations: 75.66 kB / 444.8 MB, free: 14.71 MB / 366.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.00118/0.3785, allocations: 0.9103 MB / 445.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001077/0.3796, allocations: 474 kB / 446.1 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3796, allocations: 0 / 446.1 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000635/0.3802, allocations: 350 kB / 446.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003956/0.3806, allocations: 25 kB / 446.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005528/0.3861, allocations: 3.042 MB / 449.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005298/0.3867, allocations: 0.7734 MB / 450.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001606/0.3868, allocations: 29.62 kB / 450.3 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001807/0.387, allocations: 101.4 kB / 450.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.387, allocations: 0 / 450.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04239/0.4294, allocations: 5.841 MB / 456.3 MB, free: 9.773 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.97, allocations: 8.812 kB / 456.3 MB, free: 9.77 MB / 366.1 MB " [Timeout remaining time 649] (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: 13.60681049899722]