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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001569/0.001569, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00197/0.00197, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 58.34 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08421/0.08556, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004143/0.08974, allocations: 2.839 MB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001374/0.09114, allocations: 0.806 MB / 361.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00018/0.09134, allocations: 4 kB / 361.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002358/0.09161, allocations: 59.45 kB / 361.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002977/0.09191, allocations: 99.16 kB / 361.4 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000283/0.09221, allocations: 115.8 kB / 361.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003979/0.09261, allocations: 402.5 kB / 361.9 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002103/0.09283, allocations: 118.9 kB / 362 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002902/0.09313, allocations: 167.4 kB / 362.2 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002167/0.09336, allocations: 175.2 kB / 362.3 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.148e-05/0.09343, allocations: 39.94 kB / 362.4 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.464e-05/0.0935, allocations: 32 kB / 362.4 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.315e-05/0.09357, allocations: 75.7 kB / 362.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001634/0.09374, allocations: 179.1 kB / 362.7 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003591/0.0941, allocations: 406.7 kB / 363.1 MB, free: 8.516 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.09411, allocations: 0 / 363.1 MB, free: 8.516 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.09412, allocations: 0 / 363.1 MB, free: 8.516 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.09414, allocations: 0 / 363.1 MB, free: 8.516 MB / 302.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.001173/0.09531, allocations: 0.647 MB / 363.7 MB, free: 7.816 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.09536, allocations: 12.03 kB / 363.7 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.503e-05/0.09544, allocations: 70.72 kB / 363.8 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.962e-05/0.09552, allocations: 40.56 kB / 363.8 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002994/0.09582, allocations: 283.3 kB / 364.1 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/0.09586, allocations: 25.03 kB / 364.1 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.032e-05/0.09592, allocations: 36.31 kB / 364.2 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005701/0.09649, allocations: 290.2 kB / 364.4 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.09651, allocations: 0 / 364.4 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.713e-05/0.09655, allocations: 8 kB / 364.5 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.09656, allocations: 8 kB / 364.5 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006293/0.09719, allocations: 258.5 kB / 364.7 MB, free: 6.758 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001686/0.09889, allocations: 1.116 MB / 365.8 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003716/0.09928, allocations: 162.5 kB / 366 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001854/0.09947, allocations: 67.8 kB / 366.1 MB, free: 5.309 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.341e-05/0.09951, allocations: 4 kB / 366.1 MB, free: 5.305 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.396e-05/0.09954, allocations: 38.48 kB / 366.1 MB, free: 5.258 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.292e-06/0.09954, allocations: 4 kB / 366.1 MB, free: 5.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.002056/0.1016, allocations: 0.5941 MB / 366.7 MB, free: 4.648 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.173e-05/0.1016, allocations: 51.41 kB / 366.7 MB, free: 4.586 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002801/0.1019, allocations: 290.8 kB / 367 MB, free: 4.289 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.102, allocations: 29.7 kB / 367.1 MB, free: 4.254 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.1021, allocations: 227.5 kB / 367.3 MB, free: 4.023 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.335e-05/0.1022, allocations: 78.91 kB / 367.4 MB, free: 3.945 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.726e-05/0.1023, allocations: 65.61 kB / 367.4 MB, free: 3.875 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.1024, allocations: 334.8 kB / 367.7 MB, free: 3.539 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002972/0.1027, allocations: 99.94 kB / 367.8 MB, free: 3.441 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000342/0.103, allocations: 195.9 kB / 368 MB, free: 3.203 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006277/0.1037, allocations: 306.8 kB / 368.3 MB, free: 2.863 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.1037, allocations: 0 / 368.3 MB, free: 2.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008635/0.1045, allocations: 401.3 kB / 368.7 MB, free: 2.461 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.1046, allocations: 8 kB / 368.7 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.1046, allocations: 0 / 368.7 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000229/0.1048, allocations: 65.7 kB / 368.8 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003246/0.1051, allocations: 67.89 kB / 368.9 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1467/0.2519, allocations: 2.836 MB / 371.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003863/0.2523, allocations: 25.88 kB / 371.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.043e-05/0.2524, allocations: 16.84 kB / 371.7 MB, free: 18.8 MB / 302.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.0001722/0.2525, allocations: 152.4 kB / 371.9 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.946e-05/0.2526, allocations: 26.56 kB / 371.9 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.613e-05/0.2527, allocations: 32.94 kB / 372 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.411e-06/0.2527, allocations: 6.406 kB / 372 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.2527, allocations: 1.75 kB / 372 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.2527, allocations: 1.406 kB / 372 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004007/0.2531, allocations: 334.8 kB / 372.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.2531, allocations: 5.094 kB / 372.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002504/0.2534, allocations: 41.81 kB / 372.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001906/0.2536, allocations: 57.45 kB / 372.4 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.2536, allocations: 5.484 kB / 372.4 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00138/0.255, allocations: 2.823 MB / 375.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.255, allocations: 3.625 kB / 375.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007367/0.2558, allocations: 372.1 kB / 375.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.9e-05/0.2559, allocations: 107.3 kB / 375.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.684e-05/0.2559, allocations: 5.531 kB / 375.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002287/0.2561, allocations: 13.53 kB / 375.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.172e-05/0.2562, allocations: 26.17 kB / 375.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.2563, allocations: 9.703 kB / 375.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002184/0.2565, allocations: 203.3 kB / 375.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2565, allocations: 1.781 kB / 375.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004428/0.2569, allocations: 72.62 kB / 376 MB, free: 15.48 MB / 302.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.0009501/0.2579, allocations: 0.916 MB / 376.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009317/0.2588, allocations: 490.7 kB / 377.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2589, allocations: 3.625 kB / 377.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004771/0.2593, allocations: 340.6 kB / 377.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003856/0.2597, allocations: 29.2 kB / 377.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004181/0.2639, allocations: 3.053 MB / 380.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002133/0.2642, allocations: 0.7767 MB / 381.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001524/0.2643, allocations: 29.22 kB / 381.6 MB, free: 11.53 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/0.2645, allocations: 102.3 kB / 381.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2645, allocations: 4.844 kB / 381.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02698/0.2914, allocations: 5.626 MB / 387.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.096/9.387, allocations: 11.47 kB / 387.4 MB, free: 10.66 MB / 302.1 MB (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) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches