Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001815/0.001815, allocations: 123.4 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002148/0.002148, allocations: 215.5 kB / 20.75 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.538/1.538, allocations: 230.4 MB / 254 MB, free: 15.06 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002078/0.002078, allocations: 63.91 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1209, allocations: 53.38 MB / 426.4 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.005329/0.1262, allocations: 2.871 MB / 429.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001872/0.1281, allocations: 0.7906 MB / 430 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003504/0.1284, allocations: 4 kB / 430 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003298/0.1288, allocations: 67.42 kB / 430.1 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005189/0.1293, allocations: 103.2 kB / 430.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004059/0.1297, allocations: 103.8 kB / 430.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006208/0.1303, allocations: 402.4 kB / 430.7 MB, free: 392 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002791/0.1306, allocations: 98.94 kB / 430.8 MB, free: 288 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004593/0.1311, allocations: 167.3 kB / 430.9 MB, free: 120 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2558/0.3869, allocations: 169.8 kB / 431.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001727/0.3871, allocations: 33.47 kB / 431.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.3872, allocations: 34.31 kB / 431.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.983e-05/0.3873, allocations: 79.06 kB / 431.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000214/0.3875, allocations: 179.1 kB / 431.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005416/0.388, allocations: 412.6 kB / 431.8 MB, free: 7.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.388, allocations: 0.8125 kB / 431.8 MB, free: 7.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.388, allocations: 0 / 431.8 MB, free: 7.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.3881, allocations: 1.125 kB / 431.8 MB, free: 7.762 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.001198/0.3893, allocations: 0.6537 MB / 432.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.3893, allocations: 10.23 kB / 432.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.372e-05/0.3894, allocations: 72.39 kB / 432.6 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.289e-05/0.3894, allocations: 39.33 kB / 432.6 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/0.3898, allocations: 285.8 kB / 432.9 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.994e-05/0.3898, allocations: 24.34 kB / 432.9 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.096e-05/0.3899, allocations: 33.56 kB / 432.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006197/0.3905, allocations: 298.5 kB / 433.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.3905, allocations: 0 / 433.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.957e-05/0.3905, allocations: 16.75 kB / 433.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.3905, allocations: 11.17 kB / 433.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005949/0.3911, allocations: 252.1 kB / 433.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001666/0.3928, allocations: 1.114 MB / 434.6 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004012/0.3932, allocations: 145.7 kB / 434.8 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.3934, allocations: 66.94 kB / 434.8 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.148e-05/0.3934, allocations: 1.438 kB / 434.8 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.3935, allocations: 36.84 kB / 434.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.423e-06/0.3935, allocations: 0 / 434.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002293/0.3958, allocations: 0.5984 MB / 435.5 MB, free: 6.168 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.997e-05/0.3958, allocations: 58.84 kB / 435.5 MB, free: 6.105 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000383/0.3962, allocations: 289 kB / 435.8 MB, free: 5.984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.3962, allocations: 30.36 kB / 435.8 MB, free: 5.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.3964, allocations: 237 kB / 436.1 MB, free: 5.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.837e-05/0.3965, allocations: 74.3 kB / 436.1 MB, free: 5.746 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.3966, allocations: 62.42 kB / 436.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.397e-05/0.3967, allocations: 338.2 kB / 436.5 MB, free: 5.414 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003228/0.397, allocations: 97.69 kB / 436.6 MB, free: 5.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003682/0.3974, allocations: 192.9 kB / 436.8 MB, free: 5.293 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006421/0.398, allocations: 308.9 kB / 437.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.398, allocations: 1.156 kB / 437.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009268/0.399, allocations: 397.8 kB / 437.5 MB, free: 5.094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.399, allocations: 6.984 kB / 437.5 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.399, allocations: 3.75 kB / 437.5 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002867/0.3993, allocations: 67.39 kB / 437.6 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003517/0.3996, allocations: 69.98 kB / 437.7 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001793/0.4014, allocations: 2.844 MB / 440.5 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002969/0.4017, allocations: 23.31 kB / 440.5 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.796e-05/0.4017, allocations: 15.52 kB / 440.5 MB, free: 2.367 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.0001538/0.4019, allocations: 159.8 kB / 440.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.464e-05/0.402, allocations: 28.09 kB / 440.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.356e-05/0.402, allocations: 31.23 kB / 440.7 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.402, allocations: 4.234 kB / 440.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.402, allocations: 2.688 kB / 440.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.402, allocations: 1.266 kB / 440.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004175/0.4025, allocations: 340.2 kB / 441.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.4025, allocations: 1.031 kB / 441.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002138/0.4027, allocations: 40.53 kB / 441.1 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001602/0.4028, allocations: 57.7 kB / 441.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.4029, allocations: 6.656 kB / 441.2 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001774/0.4046, allocations: 2.832 MB / 444 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.4046, allocations: 0.9688 kB / 444 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00084/0.4055, allocations: 377.3 kB / 444.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.4056, allocations: 106.8 kB / 444.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.981e-05/0.4056, allocations: 1.5 kB / 444.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002181/0.4058, allocations: 16.7 kB / 444.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.752e-05/0.4059, allocations: 24.27 kB / 444.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.4059, allocations: 5.031 kB / 444.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002695/0.4062, allocations: 199 kB / 444.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4062, allocations: 0 / 444.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004543/0.4066, allocations: 76.81 kB / 444.8 MB, free: 14.61 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.001227/0.4079, allocations: 0.9076 MB / 445.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.409, allocations: 475.4 kB / 446.2 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.409, allocations: 1.188 kB / 446.2 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005785/0.4095, allocations: 347 kB / 446.5 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/0.4099, allocations: 30.08 kB / 446.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005077/0.415, allocations: 3.041 MB / 449.6 MB, free: 11.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005078/0.4155, allocations: 0.7732 MB / 450.4 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001433/0.4156, allocations: 29.94 kB / 450.4 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.4158, allocations: 101.3 kB / 450.5 MB, free: 10.45 MB / 366.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4158, allocations: 1.125 kB / 450.5 MB, free: 10.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04616/0.462, allocations: 5.83 MB / 456.3 MB, free: 9.641 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.35/10.81, allocations: 7.969 kB / 456.3 MB, free: 9.637 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv. Warning: Get data of variable magFluxSensor.Phi from file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv failed! Error: Could not read variable voltageSensor.v in file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv. Warning: Get data of variable voltageSensor.v from file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.447530265897512]