Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008652/0.0008652, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000963/0.000963, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8562/0.8562, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2e-05/2.177e-05, allocations: 5.516 kB / 318.4 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.002163/0.002185, allocations: 1.944 MB / 320.4 MB, free: 4.375 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007/0.002885, allocations: 0.5492 MB / 320.9 MB, free: 3.82 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.52e-05/0.00295, allocations: 0 / 320.9 MB, free: 3.82 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.844e-05/0.002999, allocations: 23.73 kB / 321 MB, free: 3.797 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001092/0.003108, allocations: 55.55 kB / 321 MB, free: 3.742 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002754/0.003383, allocations: 87.69 kB / 321.1 MB, free: 3.656 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001658/0.003549, allocations: 195.2 kB / 321.3 MB, free: 3.465 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001303/0.003679, allocations: 37.66 kB / 321.3 MB, free: 3.422 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000176/0.003855, allocations: 119.6 kB / 321.4 MB, free: 3.305 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.981e-05/0.003935, allocations: 55.81 kB / 321.5 MB, free: 3.25 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.95e-05/0.003964, allocations: 16 kB / 321.5 MB, free: 3.234 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.725e-05/0.003982, allocations: 16 kB / 321.5 MB, free: 3.219 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.865e-05/0.00401, allocations: 39.89 kB / 321.6 MB, free: 3.18 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.635e-05/0.004057, allocations: 51.84 kB / 321.6 MB, free: 3.129 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001704/0.004227, allocations: 179.5 kB / 321.8 MB, free: 2.953 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.00423, allocations: 0 / 321.8 MB, free: 2.953 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.004231, allocations: 0 / 321.8 MB, free: 2.953 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.004235, allocations: 0 / 321.8 MB, free: 2.953 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0005344/0.00477, allocations: 405.5 kB / 322.2 MB, free: 2.527 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.004808, allocations: 8.922 kB / 322.2 MB, free: 2.52 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.655e-05/0.004844, allocations: 46.73 kB / 322.2 MB, free: 2.465 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.244e-05/0.004887, allocations: 16.84 kB / 322.3 MB, free: 2.449 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.005003, allocations: 139.4 kB / 322.4 MB, free: 2.289 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.005015, allocations: 8.375 kB / 322.4 MB, free: 2.281 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.37e-05/0.005039, allocations: 16.33 kB / 322.4 MB, free: 2.266 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002378/0.005277, allocations: 200 kB / 322.6 MB, free: 2.043 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.005287, allocations: 192 / 322.6 MB, free: 2.043 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.005302, allocations: 8.125 kB / 322.6 MB, free: 2.035 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.005307, allocations: 0 / 322.6 MB, free: 2.035 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001522/0.005459, allocations: 99.86 kB / 322.7 MB, free: 1.938 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006073/0.006067, allocations: 450.8 kB / 323.2 MB, free: 1.449 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000185/0.006252, allocations: 102.5 kB / 323.3 MB, free: 1.34 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001294/0.006381, allocations: 64.83 kB / 323.3 MB, free: 1.273 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.006397, allocations: 0 / 323.3 MB, free: 1.273 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.117e-05/0.006419, allocations: 34.56 kB / 323.4 MB, free: 1.23 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 9.41e-07/0.006419, allocations: 0 / 323.4 MB, free: 1.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.000292/0.006711, allocations: 153.4 kB / 323.5 MB, free: 1.074 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.605e-05/0.006758, allocations: 110.8 kB / 323.6 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.006867, allocations: 157.2 kB / 323.8 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.006884, allocations: 25.7 kB / 323.8 MB, free: 0.75 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.933e-05/0.006943, allocations: 120 kB / 323.9 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.237e-05/0.006965, allocations: 31.73 kB / 323.9 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.007009, allocations: 25.7 kB / 324 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.057e-05/0.00709, allocations: 322.8 kB / 324.3 MB, free: 248 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.449e-05/0.007164, allocations: 35.98 kB / 324.3 MB, free: 212 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/0.007269, allocations: 139.6 kB / 324.5 MB, free: 44 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00015/0.007419, allocations: 102.7 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.007421, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001968/0.007618, allocations: 153.6 kB / 324.7 MB, free: 15.78 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.007631, allocations: 4 kB / 324.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.007636, allocations: 4 kB / 324.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.007651, allocations: 3.938 kB / 324.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003137/0.007965, allocations: 91.84 kB / 324.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009445/0.008909, allocations: 1.377 MB / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.167e-05/0.009001, allocations: 27.91 kB / 326.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.704e-06/0.009009, allocations: 192 / 326.2 MB, free: 14.15 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 7.986e-05/0.009088, allocations: 133.8 kB / 326.3 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.382e-05/0.009112, allocations: 11.95 kB / 326.4 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002593/0.009371, allocations: 151.2 kB / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.009374, allocations: 4 kB / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-06/0.009376, allocations: 8 kB / 326.5 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.009379, allocations: 0 / 326.5 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004418/0.009821, allocations: 419.1 kB / 326.9 MB, free: 13.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.009822, allocations: 0 / 326.9 MB, free: 13.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.363e-05/0.009896, allocations: 24.02 kB / 326.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001364/0.01003, allocations: 36.77 kB / 327 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.01004, allocations: 8 kB / 327 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006549/0.0107, allocations: 1.275 MB / 328.3 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.0107, allocations: 4.156 kB / 328.3 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003128/0.01101, allocations: 297 kB / 328.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.493e-05/0.01103, allocations: 15.88 kB / 328.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.01104, allocations: 7.984 kB / 328.6 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.754e-05/0.01112, allocations: 20.05 kB / 328.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.557e-05/0.01116, allocations: 7.938 kB / 328.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.503e-06/0.01116, allocations: 7.984 kB / 328.6 MB, free: 11.53 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.264e-05/0.01122, allocations: 122 kB / 328.7 MB, free: 11.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01122, allocations: 0 / 328.7 MB, free: 11.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002047/0.01143, allocations: 36 kB / 328.8 MB, free: 11.38 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005057/0.01193, allocations: 0.8272 MB / 329.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003541/0.01229, allocations: 132 kB / 329.7 MB, free: 10.39 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.01229, allocations: 0 / 329.7 MB, free: 10.39 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000189/0.01248, allocations: 162.5 kB / 329.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001926/0.01267, allocations: 23.92 kB / 329.9 MB, free: 10.19 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001975/0.01465, allocations: 2.066 MB / 332 MB, free: 8.031 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.729e-05/0.01471, allocations: 105.4 kB / 332.1 MB, free: 7.906 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.408e-05/0.01476, allocations: 16.48 kB / 332.1 MB, free: 7.891 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.106e-05/0.01482, allocations: 40.48 kB / 332.1 MB, free: 7.852 MB / 298.7 MB Notification: Performance of SimCode: time 7.81e-07/0.01482, allocations: 0 / 332.1 MB, free: 7.852 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02044/0.03526, allocations: 4.071 MB / 336.2 MB, free: 3.906 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.926/7.961, allocations: 13.47 kB / 336.2 MB, free: 3.895 MB / 298.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.csv --start-time 0 --stop-time 6.2832 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0100051 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.637689920142293]