Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 212.5 kB / 24.51 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.517/1.517, allocations: 230.6 MB / 258.3 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1843/0.1843, allocations: 38.55 MB / 353.2 MB, free: 12.32 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002021/0.002021, allocations: 59.91 kB / 493.3 MB, free: 4.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3383/0.3404, allocations: 62.47 MB / 0.5427 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.009324/0.3497, allocations: 5.512 MB / 0.5481 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004297/0.354, allocations: 2.122 MB / 0.5502 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005207/0.3545, allocations: 23.38 kB / 0.5502 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007454/0.3553, allocations: 171.7 kB / 0.5503 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001554/0.3568, allocations: 452.2 kB / 0.5508 GB, free: 9.926 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007126/0.3575, allocations: 257.7 kB / 0.551 GB, free: 9.727 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001392/0.3589, allocations: 0.8628 MB / 0.5519 GB, free: 9.223 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006067/0.3595, allocations: 392.3 kB / 0.5522 GB, free: 8.953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006617/0.3602, allocations: 373.7 kB / 0.5526 GB, free: 8.734 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006611/0.3608, allocations: 357.5 kB / 0.5529 GB, free: 8.512 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001321/0.361, allocations: 54.84 kB / 0.553 GB, free: 8.512 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004395/0.3614, allocations: 145.8 kB / 0.5531 GB, free: 8.469 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002764/0.3617, allocations: 185.7 kB / 0.5533 GB, free: 8.336 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006429/0.3623, allocations: 252 kB / 0.5535 GB, free: 8.184 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00144/0.3638, allocations: 0.7926 MB / 0.5543 GB, free: 7.633 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3638, allocations: 0 / 0.5543 GB, free: 7.633 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3638, allocations: 5.406 kB / 0.5543 GB, free: 7.629 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.525e-05/0.3638, allocations: 0 / 0.5543 GB, free: 7.629 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002888/0.3667, allocations: 0.8682 MB / 0.5552 GB, free: 6.941 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.3668, allocations: 14.02 kB / 0.5552 GB, free: 6.938 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.823e-05/0.3668, allocations: 10.78 kB / 0.5552 GB, free: 6.938 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001521/0.3669, allocations: 90.64 kB / 0.5553 GB, free: 6.855 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002086/0.3671, allocations: 66.23 kB / 0.5553 GB, free: 6.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/0.3683, allocations: 471.5 kB / 0.5558 GB, free: 6.449 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.181e-05/0.3683, allocations: 39.06 kB / 0.5558 GB, free: 6.426 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001333/0.3685, allocations: 44.95 kB / 0.5559 GB, free: 6.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/0.3695, allocations: 0.5394 MB / 0.5564 GB, free: 6.016 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.3695, allocations: 5.141 kB / 0.5564 GB, free: 6.012 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.269e-05/0.3696, allocations: 16.09 kB / 0.5564 GB, free: 6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.017e-05/0.3697, allocations: 16.78 kB / 0.5564 GB, free: 6 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005966/0.3703, allocations: 340.1 kB / 0.5568 GB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002795/0.3731, allocations: 1.892 MB / 0.5586 GB, free: 3.754 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004566/0.3735, allocations: 219.9 kB / 0.5588 GB, free: 3.512 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.3737, allocations: 78.67 kB / 0.5589 GB, free: 3.426 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.202e-05/0.3737, allocations: 11.94 kB / 0.5589 GB, free: 3.414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003189/0.374, allocations: 164.7 kB / 0.5591 GB, free: 3.234 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.834e-06/0.374, allocations: 0 / 0.5591 GB, free: 3.234 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001988/0.376, allocations: 0.8685 MB / 0.5599 GB, free: 2.328 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.3761, allocations: 136.5 kB / 0.56 GB, free: 2.164 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005717/0.3767, allocations: 442.1 kB / 0.5605 GB, free: 1.727 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.3767, allocations: 29.7 kB / 0.5605 GB, free: 1.691 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002438/0.377, allocations: 308.2 kB / 0.5608 GB, free: 1.383 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.3771, allocations: 95.2 kB / 0.5609 GB, free: 1.289 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/0.3772, allocations: 74.08 kB / 0.5609 GB, free: 1.211 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.3774, allocations: 358.7 kB / 0.5613 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.3775, allocations: 84.83 kB / 0.5614 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002874/0.3778, allocations: 251.1 kB / 0.5616 GB, free: 468 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004448/0.3783, allocations: 329 kB / 0.5619 GB, free: 80 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3783, allocations: 0 / 0.5619 GB, free: 80 kB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009552/0.3792, allocations: 445.9 kB / 0.5623 GB, free: 15.63 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.3792, allocations: 8 kB / 0.5624 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.3792, allocations: 4 kB / 0.5624 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004294/0.3797, allocations: 84.78 kB / 0.5624 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002717/0.38, allocations: 79.84 kB / 0.5625 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002285/0.3822, allocations: 1.714 MB / 0.5642 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000385/0.3826, allocations: 28 kB / 0.5642 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.347e-05/0.3827, allocations: 16 kB / 0.5642 GB, free: 13.59 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003611/0.383, allocations: 205.7 kB / 0.5644 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.3831, allocations: 51.66 kB / 0.5645 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006683/0.3838, allocations: 288.4 kB / 0.5648 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.3838, allocations: 4 kB / 0.5648 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3838, allocations: 0 / 0.5648 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.3838, allocations: 3.938 kB / 0.5648 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001301/0.3851, allocations: 0.7206 MB / 0.5655 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3851, allocations: 3.984 kB / 0.5655 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000292/0.3854, allocations: 39.98 kB / 0.5655 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002563/0.3857, allocations: 52.8 kB / 0.5656 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.578e-05/0.3857, allocations: 4 kB / 0.5656 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001452/0.3871, allocations: 1.432 MB / 0.567 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.566e-06/0.3871, allocations: 7.875 kB / 0.567 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008426/0.388, allocations: 477.6 kB / 0.5674 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001663/0.3881, allocations: 59.7 kB / 0.5675 GB, free: 10.04 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.914e-05/0.3882, allocations: 15.92 kB / 0.5675 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002516/0.3885, allocations: 12 kB / 0.5675 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.243e-05/0.3886, allocations: 28.02 kB / 0.5675 GB, free: 9.988 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.3886, allocations: 4 kB / 0.5675 GB, free: 9.984 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004155/0.389, allocations: 307.1 kB / 0.5678 GB, free: 9.684 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.389, allocations: 0 / 0.5678 GB, free: 9.684 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006211/0.3896, allocations: 127.9 kB / 0.5679 GB, free: 9.559 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002801/0.3924, allocations: 1.403 MB / 0.5693 GB, free: 8.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009016/0.3933, allocations: 387.2 kB / 0.5697 GB, free: 7.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3933, allocations: 4.062 kB / 0.5697 GB, free: 7.926 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004227/0.3937, allocations: 230.5 kB / 0.5699 GB, free: 7.688 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008651/0.3946, allocations: 129 kB / 0.57 GB, free: 7.562 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007055/0.4017, allocations: 4.295 MB / 0.5742 GB, free: 3.059 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000406/0.4021, allocations: 285.6 kB / 0.5745 GB, free: 2.754 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000286/0.4024, allocations: 68.22 kB / 0.5746 GB, free: 2.688 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000281/0.4026, allocations: 175.4 kB / 0.5747 GB, free: 2.516 MB / 414.1 MB Notification: Performance of SimCode: time 6.92e-07/0.4026, allocations: 0 / 0.5747 GB, free: 2.516 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04291/0.4455, allocations: 12.7 MB / 0.5871 GB, free: 5.984 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.09/14.53, allocations: 6.984 kB / 0.5871 GB, free: 5.98 MB / 430.1 MB " [Timeout remaining time 645] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.713555061025545] Failed to read output from testmodel.py, exit status != 0: 14.767498524975963 14.782995577 14.415940525 Calling exit ...