Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001508/0.001508, allocations: 121.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002013/0.002013, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 59.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.2968, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00642/0.3033, allocations: 5.062 MB / 413.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00388/0.3072, allocations: 2.14 MB / 416 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004067/0.3076, allocations: 16 kB / 416 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003129/0.3108, allocations: 1.411 MB / 417.4 MB, free: 8.887 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001248/0.3121, allocations: 417.4 kB / 417.8 MB, free: 8.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002384/0.3145, allocations: 1.202 MB / 419 MB, free: 7.273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001067/0.3156, allocations: 0.7278 MB / 419.7 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000974/0.3165, allocations: 0.6495 MB / 420.4 MB, free: 5.879 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004563/0.317, allocations: 334.8 kB / 420.7 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000469/0.3175, allocations: 434.3 kB / 421.1 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.887e-05/0.3176, allocations: 68 kB / 421.2 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009662/0.3186, allocations: 407.6 kB / 421.6 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001416/0.3187, allocations: 171.4 kB / 421.8 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003577/0.3191, allocations: 370.2 kB / 422.1 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001545/0.3206, allocations: 1.217 MB / 423.3 MB, free: 2.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3207, allocations: 4 kB / 423.3 MB, free: 2.906 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.3207, allocations: 0 / 423.3 MB, free: 2.906 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.3207, allocations: 0 / 423.3 MB, free: 2.906 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.00444/0.3251, allocations: 1.477 MB / 424.8 MB, free: 1.375 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.3252, allocations: 12.03 kB / 424.8 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001557/0.3254, allocations: 127.4 kB / 425 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002594/0.328, allocations: 396.1 kB / 425.3 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002956/0.3283, allocations: 260.1 kB / 425.6 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.59e-05/0.3283, allocations: 62.38 kB / 425.7 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.3285, allocations: 84.38 kB / 425.7 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001734/0.3302, allocations: 0.8759 MB / 426.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.262e-05/0.3303, allocations: 3.953 kB / 426.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.923e-05/0.3304, allocations: 36 kB / 426.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.959e-05/0.3304, allocations: 20 kB / 426.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001708/0.3321, allocations: 0.8003 MB / 427.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004469/0.3366, allocations: 3.006 MB / 430.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/0.3379, allocations: 1.004 MB / 431.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005142/0.3385, allocations: 238.4 kB / 431.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001686/0.3386, allocations: 178.7 kB / 431.9 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/0.3387, allocations: 39.12 kB / 431.9 MB, free: 9.828 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 3.016e-06/0.3387, allocations: 0 / 431.9 MB, free: 9.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007421/0.3461, allocations: 2.409 MB / 434.3 MB, free: 7.324 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.623e-05/0.3462, allocations: 85.67 kB / 434.4 MB, free: 7.223 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000323/0.3465, allocations: 311.1 kB / 434.7 MB, free: 6.906 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.269e-05/0.3466, allocations: 33.7 kB / 434.8 MB, free: 6.867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002347/0.3468, allocations: 375.9 kB / 435.1 MB, free: 6.492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001598/0.347, allocations: 214.1 kB / 435.3 MB, free: 6.281 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000217/0.3472, allocations: 146.6 kB / 435.5 MB, free: 6.133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.3474, allocations: 350.7 kB / 435.8 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007252/0.3481, allocations: 273.8 kB / 436.1 MB, free: 5.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000894/0.349, allocations: 0.5003 MB / 436.6 MB, free: 4.906 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001622/0.3506, allocations: 0.8037 MB / 437.4 MB, free: 4.004 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.3507, allocations: 4 kB / 437.4 MB, free: 4 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001999/0.3527, allocations: 0.9028 MB / 438.3 MB, free: 3.082 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.105e-05/0.3527, allocations: 8 kB / 438.3 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.3527, allocations: 11.94 kB / 438.3 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002594/0.353, allocations: 69.7 kB / 438.4 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008413/0.3539, allocations: 199.7 kB / 438.6 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002311/0.3562, allocations: 2.872 MB / 441.5 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006358/0.3569, allocations: 63.94 kB / 441.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.519e-05/0.3569, allocations: 32 kB / 441.5 MB, free: 15.55 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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.0003238/0.3573, allocations: 228.6 kB / 441.8 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.3574, allocations: 47.66 kB / 441.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001855/0.3592, allocations: 0.7273 MB / 442.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.3592, allocations: 4 kB / 442.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.3593, allocations: 4 kB / 442.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.3593, allocations: 3.984 kB / 442.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00263/0.3619, allocations: 1.421 MB / 444 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3619, allocations: 3.984 kB / 444 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006436/0.3626, allocations: 127.8 kB / 444.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001617/0.3627, allocations: 61.61 kB / 444.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.656e-05/0.3628, allocations: 12 kB / 444.2 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002094/0.3649, allocations: 2.853 MB / 447 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.3649, allocations: 3.984 kB / 447 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002444/0.3674, allocations: 1.075 MB / 448.1 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002175/0.3676, allocations: 168.8 kB / 448.3 MB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.494e-05/0.3677, allocations: 12 kB / 448.3 MB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004803/0.3681, allocations: 43.95 kB / 448.3 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.3683, allocations: 44.56 kB / 448.4 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.687e-05/0.3683, allocations: 19.98 kB / 448.4 MB, free: 8.293 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000205/0.3685, allocations: 211 kB / 448.6 MB, free: 8.094 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3685, allocations: 0 / 448.6 MB, free: 8.094 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007672/0.3693, allocations: 176 kB / 448.8 MB, free: 7.922 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (58): * Single equations (assignments): 56 * 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.002948/0.3723, allocations: 1.682 MB / 450.5 MB, free: 6.207 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002044/0.3743, allocations: 0.9202 MB / 451.4 MB, free: 5.262 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.3743, allocations: 0 / 451.4 MB, free: 5.262 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.3754, allocations: 0.5434 MB / 451.9 MB, free: 4.691 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004605/0.3758, allocations: 44.83 kB / 452 MB, free: 4.648 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008899/0.3847, allocations: 5.138 MB / 457.1 MB, free: 15.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004681/0.3853, allocations: 0.8849 MB / 458 MB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003964/0.3857, allocations: 92.5 kB / 458.1 MB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000323/0.386, allocations: 227.3 kB / 458.3 MB, free: 13.99 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.386, allocations: 0 / 458.3 MB, free: 13.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03737/0.4234, allocations: 11.18 MB / 469.5 MB, free: 3.031 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.37/12.79, allocations: 9.516 kB / 469.5 MB, free: 3.023 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_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_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches