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.001574/0.001574, allocations: 103.6 kB / 16.51 MB, free: 6.645 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.001601/0.001601, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.452/1.452, allocations: 222.9 MB / 241.1 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 46.95 kB / 300.1 MB, free: 6.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1204, allocations: 49.45 MB / 349.5 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003706/0.1241, allocations: 2.091 MB / 351.6 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.1252, allocations: 0.565 MB / 352.2 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.1253, allocations: 0 / 352.2 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.932e-05/0.1254, allocations: 19.84 kB / 352.2 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001855/0.1256, allocations: 35.69 kB / 352.2 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003789/0.126, allocations: 78.41 kB / 352.3 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002417/0.1263, allocations: 179.2 kB / 352.5 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.1265, allocations: 37.48 kB / 352.5 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000206/0.1267, allocations: 83.62 kB / 352.6 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001152/0.1268, allocations: 67.75 kB / 352.7 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.498e-05/0.1268, allocations: 8 kB / 352.7 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.423e-05/0.1269, allocations: 15.94 kB / 352.7 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.567e-05/0.1269, allocations: 27.91 kB / 352.7 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.35e-05/0.127, allocations: 67.59 kB / 352.8 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002076/0.1272, allocations: 167.7 kB / 352.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1272, allocations: 0 / 352.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1272, allocations: 0 / 352.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.1273, allocations: 4 kB / 352.9 MB, free: 1.305 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.000849/0.1281, allocations: 474.8 kB / 353.4 MB, free: 0.793 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.1282, allocations: 8.031 kB / 353.4 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.993e-05/0.1282, allocations: 50.73 kB / 353.5 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.345e-05/0.1283, allocations: 16.75 kB / 353.5 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002/0.1285, allocations: 204.1 kB / 353.7 MB, free: 484 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.1285, allocations: 4.375 kB / 353.7 MB, free: 480 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.108e-05/0.1285, allocations: 8.375 kB / 353.7 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.1289, allocations: 152.2 kB / 353.8 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.1289, allocations: 7.938 kB / 353.8 MB, free: 296 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.1289, allocations: 4 kB / 353.8 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.1289, allocations: 4 kB / 353.8 MB, free: 288 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002869/0.1292, allocations: 99.33 kB / 353.9 MB, free: 192 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009651/0.1302, allocations: 0.5148 MB / 354.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003116/0.1305, allocations: 98.53 kB / 354.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001921/0.1307, allocations: 68.83 kB / 354.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.921e-05/0.1308, allocations: 0 / 354.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.381e-05/0.1308, allocations: 50.44 kB / 354.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.1308, allocations: 0 / 354.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004712/0.1313, allocations: 137.5 kB / 354.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.419e-05/0.1314, allocations: 107 kB / 354.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001497/0.1315, allocations: 154.2 kB / 355.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.1315, allocations: 33.64 kB / 355.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.457e-05/0.1316, allocations: 123.8 kB / 355.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.77e-05/0.1317, allocations: 27.64 kB / 355.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.788e-05/0.1317, allocations: 29.7 kB / 355.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1319, allocations: 322.8 kB / 355.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.132, allocations: 35.97 kB / 355.6 MB, free: 14.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/0.1322, allocations: 84.2 kB / 355.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002409/0.1324, allocations: 98.58 kB / 355.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.1324, allocations: 0 / 355.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003639/0.1328, allocations: 149.3 kB / 355.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.1328, allocations: 4 kB / 356 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.1328, allocations: 4 kB / 356 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.1329, allocations: 3.984 kB / 356 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005913/0.1335, allocations: 87.94 kB / 356 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.1349, allocations: 1.394 MB / 357.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.1351, allocations: 19.92 kB / 357.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.1351, allocations: 4 kB / 357.5 MB, free: 12.36 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.0001064/0.1352, allocations: 125.9 kB / 357.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.507e-05/0.1353, allocations: 15.89 kB / 357.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004598/0.1357, allocations: 155.5 kB / 357.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1357, allocations: 4 kB / 357.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.1358, allocations: 0 / 357.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.1358, allocations: 0 / 357.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007589/0.1365, allocations: 468 kB / 358.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1365, allocations: 4 kB / 358.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/0.1367, allocations: 23.98 kB / 358.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002606/0.137, allocations: 44.69 kB / 358.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.137, allocations: 8 kB / 358.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/0.138, allocations: 1.292 MB / 359.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1381, allocations: 7.875 kB / 359.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005837/0.1386, allocations: 293.2 kB / 359.9 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.679e-05/0.1387, allocations: 92.94 kB / 360 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.516e-05/0.1387, allocations: 4 kB / 360 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.1389, allocations: 15.98 kB / 360 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.792e-05/0.139, allocations: 11.97 kB / 360 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-06/0.139, allocations: 4 kB / 360 MB, free: 9.555 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.804e-05/0.1391, allocations: 132.6 kB / 360.1 MB, free: 9.426 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1391, allocations: 4.062 kB / 360.1 MB, free: 9.422 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000291/0.1394, allocations: 35.94 kB / 360.2 MB, free: 9.387 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.0008883/0.1403, allocations: 0.831 MB / 361 MB, free: 8.523 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007033/0.141, allocations: 136 kB / 361.1 MB, free: 8.391 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.141, allocations: 0 / 361.1 MB, free: 8.391 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000298/0.1413, allocations: 158.6 kB / 361.3 MB, free: 8.223 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000262/0.1416, allocations: 18.73 kB / 361.3 MB, free: 8.207 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003501/0.1451, allocations: 2.135 MB / 363.4 MB, free: 5.977 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003702/0.1455, allocations: 0.7119 MB / 364.2 MB, free: 5.238 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.925e-05/0.1456, allocations: 12.55 kB / 364.2 MB, free: 5.227 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.131e-05/0.1456, allocations: 39.41 kB / 364.2 MB, free: 5.188 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1456, allocations: 0 / 364.2 MB, free: 5.188 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3042/0.4499, allocations: 3.041 MB / 367.2 MB, free: 2.293 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002594/0.4502, allocations: 252.2 kB / 367.5 MB, free: 2.027 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.06/2.51, allocations: 3.234 kB / 367.5 MB, free: 2.027 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