Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001836/0.001836, allocations: 117.2 kB / 17.78 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002466/0.002466, allocations: 208.5 kB / 18.73 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2243/0.2243, allocations: 46.11 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003305/0.003305, allocations: 80.09 kB / 480.9 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3872/0.3905, allocations: 62.45 MB / 0.5306 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003378/0.3939, allocations: 1.912 MB / 0.5324 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.395, allocations: 0.5863 MB / 0.533 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.29e-05/0.3951, allocations: 3.125 kB / 0.533 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.253e-05/0.3952, allocations: 15.8 kB / 0.533 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002178/0.3954, allocations: 50.88 kB / 0.5331 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002875/0.3957, allocations: 84.61 kB / 0.5332 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000196/0.3959, allocations: 157.3 kB / 0.5333 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.396, allocations: 28.23 kB / 0.5333 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000217/0.3963, allocations: 78 kB / 0.5334 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001179/0.3964, allocations: 66.94 kB / 0.5335 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.621e-05/0.3964, allocations: 12.16 kB / 0.5335 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.559e-05/0.3965, allocations: 20 kB / 0.5335 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.227e-05/0.3965, allocations: 26.86 kB / 0.5335 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.284e-05/0.3966, allocations: 60.52 kB / 0.5336 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002176/0.3968, allocations: 144.1 kB / 0.5337 GB, free: 10.94 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.3968, allocations: 3.984 kB / 0.5337 GB, free: 10.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3968, allocations: 1.344 kB / 0.5337 GB, free: 10.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.3969, allocations: 0 / 0.5337 GB, free: 10.93 MB / 398.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.0007975/0.3977, allocations: 451.3 kB / 0.5342 GB, free: 10.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.3977, allocations: 10.16 kB / 0.5342 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.087e-05/0.3978, allocations: 45.23 kB / 0.5342 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002931/0.3981, allocations: 42.23 kB / 0.5343 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001926/0.3983, allocations: 185.1 kB / 0.5344 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.3983, allocations: 3.688 kB / 0.5344 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.731e-05/0.3983, allocations: 9.031 kB / 0.5344 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003389/0.3987, allocations: 148.1 kB / 0.5346 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.3987, allocations: 1.125 kB / 0.5346 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.3987, allocations: 9.031 kB / 0.5346 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.3987, allocations: 1.969 kB / 0.5346 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003358/0.3991, allocations: 94.61 kB / 0.5347 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008817/0.4, allocations: 454.6 kB / 0.5351 GB, free: 9.621 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003062/0.4003, allocations: 86.66 kB / 0.5352 GB, free: 9.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.4004, allocations: 44.27 kB / 0.5352 GB, free: 9.543 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.424e-05/0.4005, allocations: 1.375 kB / 0.5353 GB, free: 9.543 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.345e-05/0.4005, allocations: 35.88 kB / 0.5353 GB, free: 9.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=4): time 1.252e-06/0.4005, allocations: 0 / 0.5353 GB, free: 9.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.001367/0.4019, allocations: 324.4 kB / 0.5356 GB, free: 9.324 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.894e-05/0.402, allocations: 108.1 kB / 0.5357 GB, free: 9.195 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.4021, allocations: 154.4 kB / 0.5358 GB, free: 9.062 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.4021, allocations: 31.02 kB / 0.5359 GB, free: 9.027 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.755e-05/0.4022, allocations: 117.6 kB / 0.536 GB, free: 8.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.492e-05/0.4023, allocations: 18.61 kB / 0.536 GB, free: 8.895 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.708e-05/0.4023, allocations: 29.95 kB / 0.536 GB, free: 8.867 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.4025, allocations: 321.6 kB / 0.5363 GB, free: 8.547 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002377/0.4027, allocations: 55.2 kB / 0.5364 GB, free: 8.523 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002614/0.403, allocations: 98.11 kB / 0.5365 GB, free: 8.449 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004489/0.4035, allocations: 134.5 kB / 0.5366 GB, free: 8.371 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4035, allocations: 1.438 kB / 0.5366 GB, free: 8.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005704/0.404, allocations: 181.3 kB / 0.5368 GB, free: 8.266 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.4041, allocations: 8.812 kB / 0.5368 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.4041, allocations: 1.156 kB / 0.5368 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.4041, allocations: 1.531 kB / 0.5368 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005873/0.4047, allocations: 83.22 kB / 0.5369 GB, free: 8.238 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001607/0.4063, allocations: 1.51 MB / 0.5384 GB, free: 6.672 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002156/0.4065, allocations: 23.38 kB / 0.5384 GB, free: 6.664 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.5e-05/0.4066, allocations: 7.25 kB / 0.5384 GB, free: 6.66 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 0.0001191/0.4067, allocations: 119.5 kB / 0.5385 GB, free: 6.539 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.825e-05/0.4067, allocations: 16.69 kB / 0.5385 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005134/0.4073, allocations: 158.5 kB / 0.5387 GB, free: 6.438 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.4073, allocations: 3.938 kB / 0.5387 GB, free: 6.434 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-06/0.4073, allocations: 5.406 kB / 0.5387 GB, free: 6.43 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.4073, allocations: 0 / 0.5387 GB, free: 6.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008637/0.4082, allocations: 462 kB / 0.5391 GB, free: 6.016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.4082, allocations: 4 kB / 0.5391 GB, free: 6.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000159/0.4083, allocations: 28.06 kB / 0.5391 GB, free: 6.004 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.4084, allocations: 0 / 0.5391 GB, free: 6.004 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.4084, allocations: 0 / 0.5391 GB, free: 6.004 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.4084, allocations: 9.219 kB / 0.5392 GB, free: 5.996 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.4084, allocations: 4.234 kB / 0.5392 GB, free: 5.992 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005331/0.4089, allocations: 251.4 kB / 0.5394 GB, free: 5.801 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.119e-05/0.409, allocations: 91.11 kB / 0.5395 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.327e-05/0.409, allocations: 1.438 kB / 0.5395 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.4092, allocations: 34.34 kB / 0.5395 GB, free: 5.676 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.795e-05/0.4093, allocations: 6.75 kB / 0.5395 GB, free: 5.672 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.636e-06/0.4093, allocations: 2.531 kB / 0.5395 GB, free: 5.672 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.032e-05/0.4094, allocations: 111.5 kB / 0.5396 GB, free: 5.582 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4094, allocations: 192 / 0.5396 GB, free: 5.582 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002775/0.4097, allocations: 30.53 kB / 0.5397 GB, free: 5.578 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.0008717/0.4106, allocations: 0.7819 MB / 0.5404 GB, free: 4.852 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008968/0.4115, allocations: 173.7 kB / 0.5406 GB, free: 4.781 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4115, allocations: 0 / 0.5406 GB, free: 4.781 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002404/0.4118, allocations: 68.69 kB / 0.5407 GB, free: 4.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003796/0.4121, allocations: 13.62 kB / 0.5407 GB, free: 4.742 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003616/0.4158, allocations: 1.99 MB / 0.5426 GB, free: 3.141 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004099/0.4162, allocations: 0.7004 MB / 0.5433 GB, free: 2.434 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.741e-05/0.4163, allocations: 11.75 kB / 0.5433 GB, free: 2.43 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.445e-05/0.4164, allocations: 33.05 kB / 0.5433 GB, free: 2.402 MB / 398.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4164, allocations: 0 / 0.5433 GB, free: 2.402 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02873/0.4451, allocations: 3.198 MB / 0.5465 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.19, allocations: 11.39 kB / 0.5465 GB, free: 0.7734 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_1_0-beta_om_ModelicaTest_Electrical_Analog_TestSaturatingInductor.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1)