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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001319/0.001318, allocations: 104.9 kB / 16.92 MB, free: 5.781 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.001377/0.001377, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.486/1.486, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 54.78 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1273, allocations: 49.45 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.004502/0.1318, allocations: 2.018 MB / 352.2 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001337/0.1332, allocations: 0.5727 MB / 352.8 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001681/0.1334, allocations: 0 / 352.8 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001013/0.1335, allocations: 23.78 kB / 352.8 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002496/0.1338, allocations: 47.61 kB / 352.8 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005095/0.1343, allocations: 97.88 kB / 352.9 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003327/0.1346, allocations: 183.2 kB / 353.1 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001949/0.1348, allocations: 45.45 kB / 353.1 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.1351, allocations: 83.64 kB / 353.2 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.1353, allocations: 75.73 kB / 353.3 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.22e-05/0.1353, allocations: 23.94 kB / 353.3 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.278e-05/0.1354, allocations: 12 kB / 353.3 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.125e-05/0.1354, allocations: 35.84 kB / 353.4 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.1355, allocations: 75.66 kB / 353.4 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002823/0.1358, allocations: 175.7 kB / 353.6 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1358, allocations: 0 / 353.6 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1358, allocations: 0 / 353.6 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.1358, allocations: 0 / 353.6 MB, free: 0.8516 MB / 286.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.0009337/0.1368, allocations: 474.8 kB / 354.1 MB, free: 348 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.1368, allocations: 8.031 kB / 354.1 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.846e-05/0.1369, allocations: 46.73 kB / 354.1 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.328e-05/0.137, allocations: 16.75 kB / 354.2 MB, free: 268 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002897/0.1373, allocations: 192.1 kB / 354.3 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.1373, allocations: 8.375 kB / 354.3 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.292e-05/0.1373, allocations: 12.38 kB / 354.4 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000457/0.1378, allocations: 157.8 kB / 354.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.1378, allocations: 0 / 354.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.467e-05/0.1379, allocations: 7.984 kB / 354.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.1379, allocations: 4 kB / 354.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003122/0.1382, allocations: 99.88 kB / 354.6 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.1394, allocations: 0.507 MB / 355.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003403/0.1397, allocations: 102.5 kB / 355.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002267/0.14, allocations: 72.97 kB / 355.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.14, allocations: 3.984 kB / 355.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/0.1401, allocations: 38.5 kB / 355.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.1401, allocations: 0 / 355.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005451/0.1406, allocations: 145.5 kB / 355.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.075e-05/0.1407, allocations: 110.8 kB / 355.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.1409, allocations: 157.8 kB / 355.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.597e-05/0.1409, allocations: 29.7 kB / 355.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.1411, allocations: 119.8 kB / 355.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.595e-05/0.1411, allocations: 27.64 kB / 355.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.542e-05/0.1412, allocations: 29.7 kB / 355.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1413, allocations: 326.8 kB / 356.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.1415, allocations: 43.97 kB / 356.3 MB, free: 13.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001742/0.1417, allocations: 80.27 kB / 356.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002592/0.1419, allocations: 94.53 kB / 356.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.748e-06/0.1419, allocations: 0 / 356.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003795/0.1423, allocations: 153.3 kB / 356.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.1424, allocations: 7.984 kB / 356.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.106e-06/0.1424, allocations: 4 kB / 356.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.1424, allocations: 0 / 356.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000604/0.143, allocations: 83.92 kB / 356.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001854/0.1449, allocations: 1.496 MB / 358.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000184/0.1451, allocations: 23.86 kB / 358.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.796e-05/0.1451, allocations: 11.98 kB / 358.3 MB, free: 11.79 MB / 302.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.0001583/0.1453, allocations: 121.9 kB / 358.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.515e-05/0.1453, allocations: 11.91 kB / 358.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004878/0.1458, allocations: 151.2 kB / 358.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.1458, allocations: 11.94 kB / 358.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.1458, allocations: 0 / 358.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1459, allocations: 0 / 358.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008331/0.1467, allocations: 460 kB / 359 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.1467, allocations: 7.969 kB / 359 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.1469, allocations: 27.97 kB / 359 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002756/0.1471, allocations: 24.84 kB / 359.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.1472, allocations: 0 / 359.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001457/0.1486, allocations: 1.41 MB / 360.5 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1487, allocations: 0 / 360.5 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006056/0.1493, allocations: 297.5 kB / 360.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.383e-05/0.1494, allocations: 93.03 kB / 360.8 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.457e-05/0.1494, allocations: 3.938 kB / 360.8 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.1496, allocations: 19.98 kB / 360.9 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.229e-05/0.1496, allocations: 11.98 kB / 360.9 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.643e-06/0.1496, allocations: 4.062 kB / 360.9 MB, free: 8.891 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.969e-05/0.1497, allocations: 123.3 kB / 361 MB, free: 8.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1497, allocations: 0 / 361 MB, free: 8.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003086/0.1501, allocations: 39.94 kB / 361 MB, free: 8.73 MB / 302.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.00107/0.1511, allocations: 0.8349 MB / 361.9 MB, free: 7.863 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000733/0.1519, allocations: 139.9 kB / 362 MB, free: 7.727 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.1519, allocations: 0 / 362 MB, free: 7.727 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003648/0.1523, allocations: 170.7 kB / 362.2 MB, free: 7.547 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002659/0.1526, allocations: 8 kB / 362.2 MB, free: 7.539 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004217/0.1568, allocations: 2.088 MB / 364.3 MB, free: 5.355 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000385/0.1572, allocations: 0.708 MB / 365 MB, free: 4.621 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.458e-05/0.1573, allocations: 20.48 kB / 365 MB, free: 4.602 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.151e-05/0.1573, allocations: 43.42 kB / 365 MB, free: 4.559 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1574, allocations: 0 / 365 MB, free: 4.559 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03912/0.1965, allocations: 3.258 MB / 368.3 MB, free: 1.434 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/11.85, allocations: 10.86 kB / 368.3 MB, free: 1.426 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches