Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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) 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.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",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.001209/0.001209, allocations: 102.9 kB / 17.16 MB, free: 6.316 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.001132/0.001132, allocations: 190 kB / 18.07 MB, free: 5.414 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.307/1.307, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.002039/0.002039, allocations: 55.92 kB / 280.1 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1214, allocations: 46.62 MB / 326.7 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003563/0.1251, allocations: 2.064 MB / 328.8 MB, free: 2.711 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001022/0.1261, allocations: 0.6009 MB / 329.4 MB, free: 2.102 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.451e-05/0.1262, allocations: 4 kB / 329.4 MB, free: 2.098 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.823e-05/0.1263, allocations: 15.84 kB / 329.4 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001365/0.1264, allocations: 31.77 kB / 329.4 MB, free: 2.051 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003245/0.1267, allocations: 75.84 kB / 329.5 MB, free: 1.977 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000183/0.1269, allocations: 183.2 kB / 329.7 MB, free: 1.797 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.1271, allocations: 49.45 kB / 329.7 MB, free: 1.746 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001756/0.1273, allocations: 71.7 kB / 329.8 MB, free: 1.676 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.1274, allocations: 67.69 kB / 329.8 MB, free: 1.609 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.199e-05/0.1274, allocations: 15.94 kB / 329.9 MB, free: 1.594 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.235e-05/0.1275, allocations: 8 kB / 329.9 MB, free: 1.586 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.99e-05/0.1275, allocations: 31.89 kB / 329.9 MB, free: 1.555 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.656e-05/0.1276, allocations: 79.59 kB / 330 MB, free: 1.477 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001873/0.1278, allocations: 163.7 kB / 330.1 MB, free: 1.316 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1278, allocations: 0 / 330.1 MB, free: 1.316 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1278, allocations: 0 / 330.1 MB, free: 1.316 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.1278, allocations: 0 / 330.1 MB, free: 1.316 MB / 270.1 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.0008735/0.1287, allocations: 466.8 kB / 330.6 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.1288, allocations: 12.03 kB / 330.6 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.508e-05/0.1288, allocations: 42.73 kB / 330.7 MB, free: 0.75 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.552e-05/0.1289, allocations: 12.84 kB / 330.7 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002031/0.1291, allocations: 203.9 kB / 330.9 MB, free: 0.5 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.1291, allocations: 12.31 kB / 330.9 MB, free: 500 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.21e-05/0.1291, allocations: 8.375 kB / 330.9 MB, free: 492 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003392/0.1295, allocations: 160.2 kB / 331 MB, free: 316 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.1295, allocations: 0 / 331 MB, free: 316 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.1295, allocations: 8 kB / 331 MB, free: 308 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.87e-06/0.1295, allocations: 0 / 331 MB, free: 308 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002706/0.1298, allocations: 91.94 kB / 331.1 MB, free: 216 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.1308, allocations: 0.5031 MB / 331.6 MB, free: 15.65 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000299/0.1312, allocations: 114.4 kB / 331.8 MB, free: 15.53 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002808/0.1314, allocations: 72.83 kB / 331.8 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.1315, allocations: 0 / 331.8 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.1315, allocations: 38.5 kB / 331.9 MB, free: 15.41 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.1315, allocations: 0 / 331.9 MB, free: 15.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.000505/0.132, allocations: 149.6 kB / 332 MB, free: 15.25 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.412e-05/0.1321, allocations: 106.8 kB / 332.1 MB, free: 15.12 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001979/0.1323, allocations: 154.8 kB / 332.3 MB, free: 14.96 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.1323, allocations: 33.64 kB / 332.3 MB, free: 14.93 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.721e-05/0.1324, allocations: 123.8 kB / 332.4 MB, free: 14.8 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.393e-05/0.1325, allocations: 23.66 kB / 332.4 MB, free: 14.78 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.148e-05/0.1326, allocations: 33.69 kB / 332.5 MB, free: 14.74 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.1327, allocations: 322.8 kB / 332.8 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.1328, allocations: 35.97 kB / 332.8 MB, free: 14.38 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/0.133, allocations: 76.27 kB / 332.9 MB, free: 14.29 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002465/0.1333, allocations: 106.5 kB / 333 MB, free: 14.18 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1333, allocations: 0 / 333 MB, free: 14.18 MB / 286.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003311/0.1336, allocations: 149.4 kB / 333.1 MB, free: 14.02 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.1336, allocations: 4 kB / 333.2 MB, free: 14.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1337, allocations: 0 / 333.2 MB, free: 14.02 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.1337, allocations: 0 / 333.2 MB, free: 14.02 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006018/0.1343, allocations: 79.92 kB / 333.2 MB, free: 13.94 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001685/0.136, allocations: 1.405 MB / 334.6 MB, free: 12.4 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001731/0.1362, allocations: 24.2 kB / 334.7 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/0.1362, allocations: 3.984 kB / 334.7 MB, free: 12.37 MB / 286.1 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 0.0001205/0.1363, allocations: 125.8 kB / 334.8 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.005e-05/0.1364, allocations: 11.81 kB / 334.8 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004821/0.1368, allocations: 163.5 kB / 335 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.1369, allocations: 0 / 335 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-06/0.1369, allocations: 4 kB / 335 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1369, allocations: 4.031 kB / 335 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007457/0.1376, allocations: 468 kB / 335.4 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1376, allocations: 0 / 335.4 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001525/0.1378, allocations: 31.97 kB / 335.5 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002556/0.1381, allocations: 36.8 kB / 335.5 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.581e-05/0.1381, allocations: 4 kB / 335.5 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001406/0.1395, allocations: 1.296 MB / 336.8 MB, free: 10.03 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1395, allocations: 4.031 kB / 336.8 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005794/0.1401, allocations: 293.1 kB / 337.1 MB, free: 9.715 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.1403, allocations: 88.92 kB / 337.2 MB, free: 9.609 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.443e-05/0.1403, allocations: 4 kB / 337.2 MB, free: 9.605 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001904/0.1405, allocations: 11.98 kB / 337.2 MB, free: 9.594 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.766e-05/0.1406, allocations: 12.05 kB / 337.2 MB, free: 9.582 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.1406, allocations: 8 kB / 337.2 MB, free: 9.574 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.299e-05/0.1407, allocations: 123.2 kB / 337.3 MB, free: 9.453 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1407, allocations: 0 / 337.3 MB, free: 9.453 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000293/0.141, allocations: 35.94 kB / 337.4 MB, free: 9.418 MB / 286.1 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.0009586/0.1419, allocations: 0.8349 MB / 338.2 MB, free: 8.551 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006759/0.1426, allocations: 135.9 kB / 338.3 MB, free: 8.418 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.1427, allocations: 4 kB / 338.3 MB, free: 8.414 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003363/0.143, allocations: 166.7 kB / 338.5 MB, free: 8.238 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.1433, allocations: 11.94 kB / 338.5 MB, free: 8.227 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003655/0.1469, allocations: 2.142 MB / 340.6 MB, free: 5.992 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004671/0.1474, allocations: 0.7157 MB / 341.4 MB, free: 5.25 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.933e-05/0.1475, allocations: 16.48 kB / 341.4 MB, free: 5.234 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.999e-05/0.1476, allocations: 39.42 kB / 341.4 MB, free: 5.195 MB / 286.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1476, allocations: 0 / 341.4 MB, free: 5.195 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1906/0.3382, allocations: 3.047 MB / 344.5 MB, free: 2.117 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000204/0.3385, allocations: 240.2 kB / 344.7 MB, free: 1.863 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.91/2.249, allocations: 0 / 344.7 MB, free: 1.863 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches