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.001461/0.001461, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001597/0.001597, allocations: 200.7 kB / 18.73 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.483/1.483, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 71.86 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2938, allocations: 50.55 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00737/0.3013, allocations: 5.05 MB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00411/0.3054, allocations: 2.14 MB / 416 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004201/0.3059, allocations: 16 kB / 416 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003288/0.3092, allocations: 1.407 MB / 417.4 MB, free: 8.871 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00116/0.3103, allocations: 413.4 kB / 417.8 MB, free: 8.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00234/0.3127, allocations: 1.207 MB / 419 MB, free: 7.258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009962/0.3137, allocations: 0.7278 MB / 419.7 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001016/0.3147, allocations: 0.6573 MB / 420.4 MB, free: 5.855 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004692/0.3152, allocations: 334.8 kB / 420.7 MB, free: 5.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004917/0.3157, allocations: 430.3 kB / 421.1 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.483e-05/0.3158, allocations: 68 kB / 421.2 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008649/0.3167, allocations: 411.6 kB / 421.6 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001534/0.3168, allocations: 167.4 kB / 421.8 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003396/0.3172, allocations: 374.2 kB / 422.1 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00152/0.3187, allocations: 1.209 MB / 423.3 MB, free: 2.895 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.3187, allocations: 3.938 kB / 423.3 MB, free: 2.891 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3187, allocations: 0 / 423.3 MB, free: 2.891 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.709e-05/0.3187, allocations: 0 / 423.3 MB, free: 2.891 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.004444/0.3232, allocations: 1.481 MB / 424.8 MB, free: 1.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.3233, allocations: 8.031 kB / 424.8 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001561/0.3234, allocations: 135.3 kB / 425 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002642/0.3261, allocations: 388.1 kB / 425.3 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003489/0.3264, allocations: 260.1 kB / 425.6 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.451e-05/0.3265, allocations: 66.38 kB / 425.7 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001695/0.3267, allocations: 80.38 kB / 425.7 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00177/0.3285, allocations: 0.8719 MB / 426.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.283e-05/0.3285, allocations: 11.95 kB / 426.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.194e-05/0.3286, allocations: 32 kB / 426.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.082e-05/0.3286, allocations: 20 kB / 426.7 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001856/0.3305, allocations: 0.7964 MB / 427.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00491/0.3354, allocations: 3.018 MB / 430.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.3368, allocations: 1 MB / 431.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005107/0.3373, allocations: 242.4 kB / 431.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00018/0.3375, allocations: 182.8 kB / 431.9 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.587e-05/0.3375, allocations: 39.06 kB / 431.9 MB, free: 9.801 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.094e-06/0.3375, allocations: 0 / 431.9 MB, free: 9.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007289/0.3448, allocations: 2.405 MB / 434.3 MB, free: 7.301 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.658e-05/0.3449, allocations: 81.67 kB / 434.4 MB, free: 7.203 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003558/0.3453, allocations: 311.1 kB / 434.7 MB, free: 6.887 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.841e-05/0.3453, allocations: 37.7 kB / 434.8 MB, free: 6.844 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002658/0.3456, allocations: 367.9 kB / 435.1 MB, free: 6.477 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001774/0.3458, allocations: 222.1 kB / 435.3 MB, free: 6.258 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002243/0.346, allocations: 142.6 kB / 435.5 MB, free: 6.113 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.3462, allocations: 358.7 kB / 435.8 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007209/0.3469, allocations: 269.8 kB / 436.1 MB, free: 5.488 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000906/0.3479, allocations: 0.5042 MB / 436.6 MB, free: 4.879 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001636/0.3495, allocations: 0.8037 MB / 437.4 MB, free: 3.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.3495, allocations: 0 / 437.4 MB, free: 3.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002109/0.3516, allocations: 0.9028 MB / 438.3 MB, free: 3.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.3517, allocations: 8 kB / 438.3 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.3517, allocations: 11.94 kB / 438.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002536/0.3519, allocations: 69.7 kB / 438.4 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008433/0.3528, allocations: 199.7 kB / 438.6 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002422/0.3552, allocations: 2.868 MB / 441.5 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006393/0.3559, allocations: 63.94 kB / 441.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.006e-05/0.356, allocations: 32 kB / 441.6 MB, free: 15.54 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.0003182/0.3563, allocations: 217.7 kB / 441.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.765e-05/0.3564, allocations: 51.64 kB / 441.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00187/0.3583, allocations: 0.7273 MB / 442.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.3583, allocations: 8 kB / 442.5 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.3583, allocations: 4 kB / 442.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.3583, allocations: 3.984 kB / 442.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002665/0.361, allocations: 1.417 MB / 444 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.361, allocations: 4 kB / 444 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006461/0.3617, allocations: 131.8 kB / 444.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000169/0.3618, allocations: 57.67 kB / 444.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.875e-05/0.3619, allocations: 12 kB / 444.2 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002279/0.3642, allocations: 2.849 MB / 447 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3642, allocations: 0 / 447 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002506/0.3667, allocations: 1.087 MB / 448.1 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002222/0.3669, allocations: 160.8 kB / 448.3 MB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.411e-05/0.367, allocations: 12 kB / 448.3 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004738/0.3675, allocations: 51.89 kB / 448.3 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.3676, allocations: 40.5 kB / 448.4 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.676e-05/0.3677, allocations: 19.98 kB / 448.4 MB, free: 8.277 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002237/0.3679, allocations: 215.1 kB / 448.6 MB, free: 8.074 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3679, allocations: 0 / 448.6 MB, free: 8.074 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007372/0.3686, allocations: 176 kB / 448.8 MB, free: 7.902 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.003054/0.3717, allocations: 1.686 MB / 450.5 MB, free: 6.184 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002107/0.3738, allocations: 0.9122 MB / 451.4 MB, free: 5.246 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3738, allocations: 4.188 kB / 451.4 MB, free: 5.242 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.3749, allocations: 0.5433 MB / 451.9 MB, free: 4.672 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005243/0.3754, allocations: 47.97 kB / 452 MB, free: 4.629 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009281/0.3847, allocations: 5.146 MB / 457.1 MB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005705/0.3853, allocations: 0.881 MB / 458 MB, free: 14.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000395/0.3857, allocations: 92.5 kB / 458.1 MB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003462/0.3861, allocations: 223.3 kB / 458.3 MB, free: 13.98 MB / 382.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3861, allocations: 0 / 458.3 MB, free: 13.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06117/0.4473, allocations: 11.18 MB / 469.5 MB, free: 3.016 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.23/13.68, allocations: 16.52 kB / 469.5 MB, free: 3.004 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.1.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