Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",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.001083/0.001083, allocations: 114.4 kB / 17.78 MB, free: 5.258 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.001116/0.001116, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.321/1.321, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2015/0.2015, allocations: 44.19 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 67.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3242, allocations: 60.83 MB / 0.5184 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.002707/0.327, allocations: 1.896 MB / 0.5203 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000788/0.3278, allocations: 0.5407 MB / 0.5208 GB, free: 1.605 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.428e-05/0.3279, allocations: 2.344 kB / 0.5208 GB, free: 1.605 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.311e-05/0.3279, allocations: 14 kB / 0.5208 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001887/0.3281, allocations: 35.23 kB / 0.5208 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002298/0.3284, allocations: 83.89 kB / 0.5209 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001649/0.3286, allocations: 163.4 kB / 0.5211 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.3287, allocations: 27.69 kB / 0.5211 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001566/0.3289, allocations: 72.75 kB / 0.5212 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.329, allocations: 70.69 kB / 0.5212 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.254e-05/0.329, allocations: 11.69 kB / 0.5212 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.557e-05/0.329, allocations: 12.47 kB / 0.5213 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.582e-05/0.3291, allocations: 30.73 kB / 0.5213 GB, free: 1.348 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.689e-05/0.3291, allocations: 63.45 kB / 0.5213 GB, free: 1.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002009/0.3294, allocations: 143 kB / 0.5215 GB, free: 1.254 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3294, allocations: 0 / 0.5215 GB, free: 1.254 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3294, allocations: 0 / 0.5215 GB, free: 1.254 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.471e-06/0.3294, allocations: 1.156 kB / 0.5215 GB, free: 1.254 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.00071/0.3301, allocations: 453.5 kB / 0.5219 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.3301, allocations: 8.875 kB / 0.5219 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.838e-05/0.3302, allocations: 43.77 kB / 0.522 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.216e-05/0.3302, allocations: 11.83 kB / 0.522 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.3304, allocations: 187.8 kB / 0.5222 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.3304, allocations: 3.781 kB / 0.5222 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.77e-05/0.3304, allocations: 14.31 kB / 0.5222 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003255/0.3307, allocations: 141 kB / 0.5223 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.3308, allocations: 1.219 kB / 0.5223 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/0.3308, allocations: 5.031 kB / 0.5223 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.3308, allocations: 1.812 kB / 0.5223 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003321/0.3311, allocations: 95.98 kB / 0.5224 GB, free: 472 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000757/0.3319, allocations: 450.5 kB / 0.5228 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002947/0.3322, allocations: 95.97 kB / 0.5229 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.3324, allocations: 42.2 kB / 0.523 GB, free: 28 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.306e-05/0.3324, allocations: 0 / 0.523 GB, free: 28 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.335e-05/0.3324, allocations: 36.7 kB / 0.523 GB, free: 15.98 MB / 398.1 MB Notification: Performance of pre-optimization done (n=4): time 9.21e-07/0.3325, allocations: 0 / 0.523 GB, free: 15.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.001439/0.3339, allocations: 315.9 kB / 0.5233 GB, free: 15.88 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.709e-05/0.334, allocations: 108.2 kB / 0.5234 GB, free: 15.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.3341, allocations: 145.3 kB / 0.5235 GB, free: 15.64 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.344e-05/0.3342, allocations: 30.83 kB / 0.5236 GB, free: 15.61 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.327e-05/0.3343, allocations: 114 kB / 0.5237 GB, free: 15.5 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.686e-05/0.3343, allocations: 24.36 kB / 0.5237 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.091e-05/0.3344, allocations: 25.66 kB / 0.5237 GB, free: 15.46 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.3345, allocations: 319.8 kB / 0.524 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002501/0.3347, allocations: 61.44 kB / 0.5241 GB, free: 15.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002642/0.335, allocations: 97.39 kB / 0.5242 GB, free: 15.07 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004572/0.3355, allocations: 139.5 kB / 0.5243 GB, free: 15.01 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.3355, allocations: 0 / 0.5243 GB, free: 15.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005335/0.336, allocations: 178.5 kB / 0.5245 GB, free: 14.93 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.3361, allocations: 9.656 kB / 0.5245 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.3361, allocations: 1.688 kB / 0.5245 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.3361, allocations: 2.078 kB / 0.5245 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005996/0.3367, allocations: 90.44 kB / 0.5246 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001471/0.3382, allocations: 1.502 MB / 0.5261 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00023/0.3384, allocations: 32.14 kB / 0.5261 GB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.838e-05/0.3384, allocations: 10.67 kB / 0.5261 GB, free: 13.39 MB / 398.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 (9): * Single equations (assignments): 8 * 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 9.821e-05/0.3385, allocations: 121.2 kB / 0.5262 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.908e-05/0.3386, allocations: 9.594 kB / 0.5262 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005305/0.3391, allocations: 166.8 kB / 0.5264 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.3391, allocations: 1.125 kB / 0.5264 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-06/0.3391, allocations: 0 / 0.5264 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3392, allocations: 0.5625 kB / 0.5264 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008268/0.34, allocations: 466.6 kB / 0.5268 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.34, allocations: 1.969 kB / 0.5268 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001673/0.3402, allocations: 30.41 kB / 0.5269 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.3402, allocations: 0.6094 kB / 0.5269 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.3402, allocations: 8 kB / 0.5269 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.3402, allocations: 6.078 kB / 0.5269 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3402, allocations: 0 / 0.5269 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005437/0.3408, allocations: 246.6 kB / 0.5271 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.616e-05/0.3408, allocations: 85.47 kB / 0.5272 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.324e-05/0.3409, allocations: 0 / 0.5272 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002262/0.3411, allocations: 30.91 kB / 0.5272 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.447e-05/0.3411, allocations: 9.312 kB / 0.5272 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.3412, allocations: 2.469 kB / 0.5272 GB, free: 12.55 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.047e-05/0.3413, allocations: 117.6 kB / 0.5273 GB, free: 12.46 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3413, allocations: 0 / 0.5273 GB, free: 12.46 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002841/0.3416, allocations: 31.09 kB / 0.5274 GB, free: 12.46 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000821/0.3424, allocations: 0.7866 MB / 0.5281 GB, free: 11.76 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008998/0.3433, allocations: 175.1 kB / 0.5283 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3433, allocations: 0 / 0.5283 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002399/0.3436, allocations: 58.02 kB / 0.5284 GB, free: 11.72 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003508/0.3439, allocations: 29.42 kB / 0.5284 GB, free: 11.7 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00338/0.3473, allocations: 1.985 MB / 0.5303 GB, free: 10.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.3476, allocations: 0.7071 MB / 0.531 GB, free: 9.441 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.227e-05/0.3477, allocations: 7 kB / 0.531 GB, free: 9.441 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.392e-05/0.3478, allocations: 33.3 kB / 0.5311 GB, free: 9.414 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3478, allocations: 4 kB / 0.5311 GB, free: 9.41 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01984/0.3676, allocations: 3.19 MB / 0.5342 GB, free: 7.762 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/10.94, allocations: 4.391 kB / 0.5342 GB, free: 7.762 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestSaturatingInductor/TestSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches