Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_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.00156/0.00156, allocations: 112 kB / 17.06 MB, free: 5.988 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.001705/0.001705, allocations: 195.9 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 40.06 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3077, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.004904/0.3126, allocations: 2.746 MB / 403 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.3143, allocations: 0.8683 MB / 403.8 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001645/0.3145, allocations: 4 kB / 403.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000278/0.3148, allocations: 59.5 kB / 403.9 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003061/0.3152, allocations: 103.2 kB / 404 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002632/0.3154, allocations: 99.81 kB / 404.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003921/0.3158, allocations: 350.6 kB / 404.4 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002101/0.316, allocations: 113.6 kB / 404.6 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00021/0.3163, allocations: 135.5 kB / 404.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002266/0.3165, allocations: 151.3 kB / 404.8 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.254e-05/0.3166, allocations: 28 kB / 404.9 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.475e-05/0.3166, allocations: 32 kB / 404.9 MB, free: 4.133 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.418e-05/0.3167, allocations: 67.77 kB / 405 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.3169, allocations: 147.3 kB / 405.1 MB, free: 3.922 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004291/0.3173, allocations: 365.5 kB / 405.5 MB, free: 3.566 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.3173, allocations: 7.938 kB / 405.5 MB, free: 3.559 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3173, allocations: 0 / 405.5 MB, free: 3.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.3173, allocations: 0 / 405.5 MB, free: 3.559 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.001078/0.3184, allocations: 0.6078 MB / 406.1 MB, free: 2.902 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.3185, allocations: 15.88 kB / 406.1 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.603e-05/0.3186, allocations: 62.73 kB / 406.2 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.418e-05/0.3186, allocations: 32.75 kB / 406.2 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004347/0.3191, allocations: 265.1 kB / 406.4 MB, free: 2.488 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.357e-05/0.3191, allocations: 20.94 kB / 406.5 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.992e-05/0.3192, allocations: 28.31 kB / 406.5 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005019/0.3197, allocations: 249 kB / 406.7 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.3197, allocations: 4 kB / 406.7 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.006e-05/0.3197, allocations: 12 kB / 406.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.3198, allocations: 11.94 kB / 406.8 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004509/0.3202, allocations: 210.1 kB / 407 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001611/0.3218, allocations: 0.9978 MB / 408 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004557/0.3223, allocations: 204.6 kB / 408.2 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002609/0.3226, allocations: 112.8 kB / 408.3 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.388e-05/0.3226, allocations: 8 kB / 408.3 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/0.3227, allocations: 42.59 kB / 408.3 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.483e-06/0.3227, allocations: 0 / 408.3 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.005183/0.3279, allocations: 1.536 MB / 409.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/0.3279, allocations: 63.27 kB / 409.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002545/0.3282, allocations: 228.9 kB / 410.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/0.3282, allocations: 33.69 kB / 410.2 MB, free: 14.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.3284, allocations: 188.5 kB / 410.4 MB, free: 14.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.3285, allocations: 123 kB / 410.5 MB, free: 14.22 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001236/0.3286, allocations: 70.02 kB / 410.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.3288, allocations: 338.8 kB / 410.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002488/0.329, allocations: 104.7 kB / 411 MB, free: 13.7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002848/0.3293, allocations: 165.5 kB / 411.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005573/0.3299, allocations: 279.9 kB / 411.4 MB, free: 13.24 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.3299, allocations: 0 / 411.4 MB, free: 13.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001582/0.3315, allocations: 0.5333 MB / 412 MB, free: 12.69 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.3315, allocations: 8 kB / 412 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.3315, allocations: 3.984 kB / 412 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001244/0.3328, allocations: 245.5 kB / 412.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002789/0.3331, allocations: 59.91 kB / 412.3 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005231/0.3383, allocations: 4.132 MB / 416.4 MB, free: 7.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002708/0.3386, allocations: 16.02 kB / 416.4 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.857e-05/0.3387, allocations: 12 kB / 416.4 MB, free: 7.941 MB / 334.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.0002052/0.3389, allocations: 157.7 kB / 416.6 MB, free: 7.777 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.498e-05/0.3389, allocations: 23.86 kB / 416.6 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.5e-05/0.339, allocations: 42.95 kB / 416.6 MB, free: 7.711 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.3391, allocations: 0 / 416.6 MB, free: 7.711 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/0.3391, allocations: 8 kB / 416.6 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.323e-06/0.3391, allocations: 3.984 kB / 416.7 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00215/0.3412, allocations: 0.9861 MB / 417.6 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.3413, allocations: 0 / 417.6 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002163/0.3415, allocations: 47.91 kB / 417.7 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001195/0.3427, allocations: 241.8 kB / 417.9 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.84e-05/0.3427, allocations: 15.92 kB / 417.9 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005011/0.3477, allocations: 4.118 MB / 422.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3478, allocations: 0 / 422.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.3497, allocations: 0.7367 MB / 422.8 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.3499, allocations: 97 kB / 422.9 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.503e-05/0.3499, allocations: 7.938 kB / 422.9 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002342/0.3502, allocations: 15.98 kB / 422.9 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.3503, allocations: 31.89 kB / 422.9 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.758e-05/0.3503, allocations: 20.06 kB / 423 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001917/0.3505, allocations: 168.4 kB / 423.1 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3505, allocations: 0 / 423.1 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000628/0.3512, allocations: 104 kB / 423.2 MB, free: 0.7227 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.002235/0.3534, allocations: 1.27 MB / 424.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001221/0.3546, allocations: 0.5749 MB / 425.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3547, allocations: 0 / 425.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006821/0.3553, allocations: 429.5 kB / 425.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003628/0.3557, allocations: 33.03 kB / 425.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006423/0.3622, allocations: 3.34 MB / 428.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004451/0.3626, allocations: 0.7838 MB / 429.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001082/0.3628, allocations: 22.28 kB / 429.7 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.3629, allocations: 91.41 kB / 429.8 MB, free: 9.941 MB / 350.1 MB Notification: Performance of SimCode: time 1.543e-06/0.3629, allocations: 0 / 429.8 MB, free: 9.941 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04496/0.4079, allocations: 8.408 MB / 438.2 MB, free: 1.734 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.58/12.99, allocations: 15.61 kB / 438.2 MB, free: 1.723 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.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_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches