Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 114.4 kB / 17.74 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001857/0.001857, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.407/1.407, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 55.86 kB / 328 MB, free: 3.84 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09312/0.09442, allocations: 46.62 MB / 374.6 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor): time 0.004369/0.09883, allocations: 2.664 MB / 377.3 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001542/0.1004, allocations: 0.9119 MB / 378.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002392/0.1007, allocations: 4 kB / 378.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003126/0.101, allocations: 63.48 kB / 378.3 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003998/0.1015, allocations: 103.1 kB / 378.4 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003323/0.1018, allocations: 103.8 kB / 378.5 MB, free: 1.238 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000508/0.1023, allocations: 350.6 kB / 378.8 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002306/0.1026, allocations: 113.7 kB / 378.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002503/0.1028, allocations: 135.5 kB / 379.1 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002445/0.1031, allocations: 143.4 kB / 379.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.025e-05/0.1031, allocations: 28 kB / 379.2 MB, free: 492 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.249e-05/0.1032, allocations: 32 kB / 379.3 MB, free: 460 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.197e-05/0.1033, allocations: 71.77 kB / 379.3 MB, free: 388 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001691/0.1035, allocations: 155.2 kB / 379.5 MB, free: 232 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2038/0.3072, allocations: 358.5 kB / 379.8 MB, free: 10.04 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/0.3073, allocations: 3.469 kB / 379.8 MB, free: 10.04 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3073, allocations: 1.406 kB / 379.8 MB, free: 10.04 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.16e-05/0.3073, allocations: 0 / 379.8 MB, free: 10.04 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001222/0.3085, allocations: 0.605 MB / 380.4 MB, free: 9.594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.3086, allocations: 13.48 kB / 380.5 MB, free: 9.59 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.167e-05/0.3087, allocations: 62.28 kB / 380.5 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.093e-05/0.3088, allocations: 37.2 kB / 380.6 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003619/0.3092, allocations: 267.3 kB / 380.8 MB, free: 9.309 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/0.3092, allocations: 18.56 kB / 380.8 MB, free: 9.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.897e-05/0.3092, allocations: 26.75 kB / 380.9 MB, free: 9.309 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000526/0.3098, allocations: 251.4 kB / 381.1 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.3098, allocations: 0 / 381.1 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.849e-05/0.3098, allocations: 8.812 kB / 381.1 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.3098, allocations: 7.031 kB / 381.1 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004852/0.3103, allocations: 216.9 kB / 381.3 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001617/0.312, allocations: 1.002 MB / 382.3 MB, free: 8.754 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000521/0.3125, allocations: 205.1 kB / 382.5 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003032/0.3128, allocations: 110.2 kB / 382.6 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.3129, allocations: 2.344 kB / 382.6 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.3129, allocations: 39.88 kB / 382.7 MB, free: 8.684 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.174e-06/0.3129, allocations: 0 / 382.7 MB, free: 8.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.005453/0.3184, allocations: 1.547 MB / 384.2 MB, free: 8.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.04e-05/0.3184, allocations: 59.69 kB / 384.3 MB, free: 8.148 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003035/0.3187, allocations: 223.3 kB / 384.5 MB, free: 8.047 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.395e-05/0.3188, allocations: 34.34 kB / 384.5 MB, free: 8.016 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.3189, allocations: 187.3 kB / 384.7 MB, free: 7.887 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.554e-05/0.319, allocations: 123.9 kB / 384.8 MB, free: 7.805 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001283/0.3191, allocations: 63.44 kB / 384.9 MB, free: 7.785 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.502e-05/0.3192, allocations: 342.6 kB / 385.2 MB, free: 7.469 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002559/0.3195, allocations: 107.2 kB / 385.3 MB, free: 7.469 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002702/0.3198, allocations: 166.5 kB / 385.5 MB, free: 7.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000474/0.3203, allocations: 282.2 kB / 385.8 MB, free: 7.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3203, allocations: 0 / 385.8 MB, free: 7.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001561/0.3218, allocations: 0.535 MB / 386.3 MB, free: 7.105 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.3219, allocations: 5.844 kB / 386.3 MB, free: 7.105 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.3219, allocations: 5.344 kB / 386.3 MB, free: 7.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001267/0.3232, allocations: 240.1 kB / 386.6 MB, free: 7.047 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002738/0.3235, allocations: 60.39 kB / 386.6 MB, free: 7.043 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004096/0.3276, allocations: 4.143 MB / 390.8 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002585/0.3278, allocations: 10.55 kB / 390.8 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.083e-05/0.3279, allocations: 12.88 kB / 390.8 MB, free: 3.434 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (29): * Single equations (assignments): 27 * 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): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001554/0.328, allocations: 158.9 kB / 390.9 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.657e-05/0.3281, allocations: 32.5 kB / 391 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.534e-05/0.3282, allocations: 43.52 kB / 391 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.3282, allocations: 4.141 kB / 391 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.3282, allocations: 2.156 kB / 391 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.3282, allocations: 1.453 kB / 391 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002114/0.3304, allocations: 0.9771 MB / 392 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.3304, allocations: 5.281 kB / 392 MB, free: 2.672 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002116/0.3306, allocations: 39.17 kB / 392 MB, free: 2.672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001156/0.3318, allocations: 239.7 kB / 392.3 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.598e-05/0.3318, allocations: 12.94 kB / 392.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004152/0.336, allocations: 4.129 MB / 396.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.336, allocations: 1.312 kB / 396.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001915/0.3379, allocations: 0.7249 MB / 397.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.897e-05/0.338, allocations: 105.3 kB / 397.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.801e-05/0.3381, allocations: 12.59 kB / 397.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002469/0.3383, allocations: 14.25 kB / 397.3 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.3384, allocations: 29.25 kB / 397.3 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-05/0.3385, allocations: 10.02 kB / 397.3 MB, free: 14.51 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001925/0.3387, allocations: 166.6 kB / 397.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3387, allocations: 1.094 kB / 397.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006745/0.3394, allocations: 103.7 kB / 397.6 MB, free: 14.39 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * 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 (19): * Single equations (assignments): 17 * 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): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00218/0.3415, allocations: 1.289 MB / 398.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001115/0.3427, allocations: 0.5668 MB / 399.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.3427, allocations: 4.594 kB / 399.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000644/0.3433, allocations: 426.8 kB / 399.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003634/0.3437, allocations: 27.31 kB / 399.9 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00662/0.3503, allocations: 3.357 MB / 403.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004698/0.3508, allocations: 0.7775 MB / 404 MB, free: 9.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001161/0.351, allocations: 21.55 kB / 404 MB, free: 9.977 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.3511, allocations: 90.92 kB / 404.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of SimCode: time 2.315e-06/0.3511, allocations: 0 / 404.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03662/0.3878, allocations: 8.387 MB / 412.5 MB, free: 6.637 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/12.85, allocations: 11.27 kB / 412.5 MB, free: 6.629 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 4e-05 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches