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.0014/0.0014, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001581/0.001581, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 247 MB, free: 10.43 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.2357/0.2357, allocations: 46.13 MB / 344.4 MB, free: 11.46 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.002236/0.002236, allocations: 75.88 kB / 480.9 MB, free: 4.535 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.3279, allocations: 62.45 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003392/0.3314, allocations: 1.912 MB / 0.5325 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.3324, allocations: 0.5825 MB / 0.533 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.034e-05/0.3325, allocations: 1.656 kB / 0.533 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.786e-05/0.3326, allocations: 11.86 kB / 0.533 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001964/0.3328, allocations: 49.12 kB / 0.5331 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002602/0.3331, allocations: 85.3 kB / 0.5332 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001758/0.3332, allocations: 147.2 kB / 0.5333 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.3334, allocations: 40.16 kB / 0.5333 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001958/0.3336, allocations: 74 kB / 0.5334 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001111/0.3337, allocations: 70.98 kB / 0.5335 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.82e-05/0.3337, allocations: 12.38 kB / 0.5335 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.847e-05/0.3338, allocations: 15.12 kB / 0.5335 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.748e-05/0.3338, allocations: 27.98 kB / 0.5335 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.231e-05/0.3339, allocations: 60.22 kB / 0.5336 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002251/0.3341, allocations: 152.9 kB / 0.5337 GB, free: 10.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3342, allocations: 0 / 0.5337 GB, free: 10.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3342, allocations: 0 / 0.5337 GB, free: 10.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.728e-06/0.3342, allocations: 3.938 kB / 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.0008156/0.335, allocations: 456.3 kB / 0.5342 GB, free: 10.49 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.335, allocations: 10.44 kB / 0.5342 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.714e-05/0.3351, allocations: 36.72 kB / 0.5342 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000304/0.3354, allocations: 41.81 kB / 0.5343 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000179/0.3356, allocations: 185.5 kB / 0.5344 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.3356, allocations: 7.562 kB / 0.5344 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.653e-05/0.3356, allocations: 9.5 kB / 0.5345 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003308/0.336, allocations: 144.6 kB / 0.5346 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.336, allocations: 3.984 kB / 0.5346 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.336, allocations: 1.125 kB / 0.5346 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.336, allocations: 2.25 kB / 0.5346 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003382/0.3364, allocations: 102.1 kB / 0.5347 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000848/0.3372, allocations: 450.6 kB / 0.5351 GB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003915/0.3376, allocations: 93.55 kB / 0.5352 GB, free: 9.559 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001765/0.3378, allocations: 37.8 kB / 0.5353 GB, free: 9.539 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.3379, allocations: 4 kB / 0.5353 GB, free: 9.535 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.3379, allocations: 35.94 kB / 0.5353 GB, free: 9.492 MB / 398.1 MB Notification: Performance of pre-optimization done (n=4): time 1.382e-06/0.3379, allocations: 1.406 kB / 0.5353 GB, free: 9.492 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.001423/0.3393, allocations: 320.2 kB / 0.5356 GB, free: 9.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.383e-05/0.3394, allocations: 104.2 kB / 0.5357 GB, free: 9.195 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001515/0.3396, allocations: 156.8 kB / 0.5358 GB, free: 9.062 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.3396, allocations: 31.02 kB / 0.5359 GB, free: 9.027 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.337e-05/0.3397, allocations: 113.7 kB / 0.536 GB, free: 8.914 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.024e-05/0.3397, allocations: 14.61 kB / 0.536 GB, free: 8.902 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.242e-05/0.3398, allocations: 29.95 kB / 0.536 GB, free: 8.875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.34, allocations: 320.2 kB / 0.5363 GB, free: 8.555 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002361/0.3402, allocations: 64.45 kB / 0.5364 GB, free: 8.523 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002597/0.3405, allocations: 93.48 kB / 0.5365 GB, free: 8.453 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004557/0.341, allocations: 135.2 kB / 0.5366 GB, free: 8.375 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.81e-07/0.341, allocations: 4 kB / 0.5366 GB, free: 8.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005302/0.3415, allocations: 170.6 kB / 0.5368 GB, free: 8.277 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.3415, allocations: 8.344 kB / 0.5368 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.3415, allocations: 8.984 kB / 0.5368 GB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.3416, allocations: 2.031 kB / 0.5368 GB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005861/0.3422, allocations: 82.84 kB / 0.5369 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001628/0.3438, allocations: 1.51 MB / 0.5384 GB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002185/0.344, allocations: 28.09 kB / 0.5384 GB, free: 6.664 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.344, allocations: 10.03 kB / 0.5384 GB, free: 6.656 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.0001182/0.3442, allocations: 123.5 kB / 0.5385 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.71e-05/0.3442, allocations: 9.672 kB / 0.5385 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005268/0.3448, allocations: 173.2 kB / 0.5387 GB, free: 6.422 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3448, allocations: 1.062 kB / 0.5387 GB, free: 6.422 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.3448, allocations: 1.125 kB / 0.5387 GB, free: 6.422 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.3448, allocations: 0 / 0.5387 GB, free: 6.422 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000908/0.3457, allocations: 469.8 kB / 0.5391 GB, free: 6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3457, allocations: 1.312 kB / 0.5391 GB, free: 6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001628/0.3459, allocations: 25.88 kB / 0.5392 GB, free: 5.992 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.3459, allocations: 5.25 kB / 0.5392 GB, free: 5.988 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.3459, allocations: 0 / 0.5392 GB, free: 5.988 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.3459, allocations: 5.188 kB / 0.5392 GB, free: 5.984 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3459, allocations: 0 / 0.5392 GB, free: 5.984 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005318/0.3465, allocations: 252.1 kB / 0.5394 GB, free: 5.793 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.175e-05/0.3465, allocations: 82.41 kB / 0.5395 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.627e-05/0.3466, allocations: 5.344 kB / 0.5395 GB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002089/0.3468, allocations: 30.31 kB / 0.5395 GB, free: 5.676 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.264e-05/0.3468, allocations: 6.734 kB / 0.5395 GB, free: 5.672 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-06/0.3468, allocations: 6.469 kB / 0.5395 GB, free: 5.668 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.295e-05/0.3469, allocations: 114.1 kB / 0.5396 GB, free: 5.574 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3469, allocations: 0 / 0.5396 GB, free: 5.574 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002806/0.3472, allocations: 29.31 kB / 0.5397 GB, free: 5.57 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.0008626/0.3481, allocations: 0.7756 MB / 0.5404 GB, free: 4.852 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009027/0.349, allocations: 173.2 kB / 0.5406 GB, free: 4.781 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.349, allocations: 0 / 0.5406 GB, free: 4.781 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000241/0.3493, allocations: 68.55 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.000354/0.3496, allocations: 20.02 kB / 0.5407 GB, free: 4.738 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003553/0.3532, allocations: 1.976 MB / 0.5426 GB, free: 3.148 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003206/0.3535, allocations: 0.6999 MB / 0.5433 GB, free: 2.441 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.173e-05/0.3536, allocations: 12.27 kB / 0.5433 GB, free: 2.438 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.525e-05/0.3537, allocations: 37.05 kB / 0.5433 GB, free: 2.406 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3537, allocations: 0 / 0.5433 GB, free: 2.406 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0277/0.3814, allocations: 3.218 MB / 0.5465 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.18, allocations: 5.688 kB / 0.5465 GB, free: 0.7656 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_TestSaturatingInductor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_TestSaturatingInductor.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1)