Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.001751/0.001751, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.00153/0.00153, allocations: 214.4 kB / 23.74 MB, free: 4.656 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.553/1.553, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1823/0.1823, allocations: 38.53 MB / 352.5 MB, free: 12.5 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",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.002644/0.002644, allocations: 63.91 kB / 492.5 MB, free: 4.855 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.3567, allocations: 62.46 MB / 0.542 GB, free: 428 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007581/0.3643, allocations: 5.378 MB / 0.5472 GB, free: 12.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003696/0.368, allocations: 2.171 MB / 0.5494 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003364/0.3683, allocations: 18.06 kB / 0.5494 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005984/0.3689, allocations: 154.9 kB / 0.5495 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001014/0.3699, allocations: 403.2 kB / 0.5499 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005821/0.3705, allocations: 221.5 kB / 0.5501 GB, free: 9.895 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001086/0.3716, allocations: 0.7145 MB / 0.5508 GB, free: 9.473 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005114/0.3721, allocations: 335.5 kB / 0.5511 GB, free: 9.242 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005644/0.3727, allocations: 318 kB / 0.5514 GB, free: 9.059 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005177/0.3732, allocations: 301.3 kB / 0.5517 GB, free: 8.867 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.707e-05/0.3733, allocations: 48.75 kB / 0.5518 GB, free: 8.867 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003527/0.3736, allocations: 143.7 kB / 0.5519 GB, free: 8.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001988/0.3738, allocations: 160.9 kB / 0.5521 GB, free: 8.699 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003338/0.3741, allocations: 273.8 kB / 0.5523 GB, free: 8.512 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001006/0.3751, allocations: 0.6955 MB / 0.553 GB, free: 8.023 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3751, allocations: 1.062 kB / 0.553 GB, free: 8.023 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3752, allocations: 0 / 0.553 GB, free: 8.023 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.547e-06/0.3752, allocations: 0 / 0.553 GB, free: 8.023 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.002029/0.3772, allocations: 0.8063 MB / 0.5538 GB, free: 7.379 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.3772, allocations: 12.77 kB / 0.5538 GB, free: 7.375 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001274/0.3774, allocations: 80.02 kB / 0.5539 GB, free: 7.301 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/0.3775, allocations: 59.88 kB / 0.5539 GB, free: 7.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008844/0.3784, allocations: 423.5 kB / 0.5543 GB, free: 6.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/0.3784, allocations: 33.38 kB / 0.5544 GB, free: 6.914 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.129e-05/0.3785, allocations: 39.33 kB / 0.5544 GB, free: 6.898 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007966/0.3793, allocations: 466.6 kB / 0.5549 GB, free: 6.559 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.3793, allocations: 5.109 kB / 0.5549 GB, free: 6.555 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.186e-05/0.3794, allocations: 20.53 kB / 0.5549 GB, free: 6.539 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.3794, allocations: 8.438 kB / 0.5549 GB, free: 6.539 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000517/0.3799, allocations: 272.3 kB / 0.5552 GB, free: 6.406 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00287/0.3828, allocations: 1.799 MB / 0.5569 GB, free: 4.812 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005778/0.3833, allocations: 230.5 kB / 0.5571 GB, free: 4.664 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001722/0.3835, allocations: 92.36 kB / 0.5572 GB, free: 4.598 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.648e-05/0.3835, allocations: 10.45 kB / 0.5572 GB, free: 4.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003972/0.3839, allocations: 166.3 kB / 0.5574 GB, free: 4.441 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.384e-06/0.3839, allocations: 0 / 0.5574 GB, free: 4.441 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.002753/0.3867, allocations: 0.8618 MB / 0.5582 GB, free: 3.543 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/0.3868, allocations: 132.5 kB / 0.5584 GB, free: 3.383 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008389/0.3877, allocations: 417.8 kB / 0.5588 GB, free: 2.965 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.365e-05/0.3877, allocations: 29.7 kB / 0.5588 GB, free: 2.93 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003218/0.388, allocations: 280.4 kB / 0.559 GB, free: 2.652 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.3882, allocations: 91.22 kB / 0.5591 GB, free: 2.562 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000174/0.3883, allocations: 69.66 kB / 0.5592 GB, free: 2.488 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002403/0.3886, allocations: 354.8 kB / 0.5595 GB, free: 2.133 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002162/0.3888, allocations: 83.95 kB / 0.5596 GB, free: 2.051 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002934/0.3891, allocations: 216.2 kB / 0.5598 GB, free: 1.781 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005136/0.3896, allocations: 315.1 kB / 0.5601 GB, free: 1.418 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.197e-06/0.3896, allocations: 4 kB / 0.5601 GB, free: 1.414 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001037/0.3906, allocations: 433.9 kB / 0.5605 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.3907, allocations: 12.09 kB / 0.5606 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.3907, allocations: 4 kB / 0.5606 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004617/0.3911, allocations: 88.77 kB / 0.5606 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002423/0.3914, allocations: 67.91 kB / 0.5607 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002777/0.3942, allocations: 1.913 MB / 0.5626 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003001/0.3945, allocations: 23.94 kB / 0.5626 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.224e-05/0.3945, allocations: 24 kB / 0.5626 GB, free: 14.74 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (37): * Single equations (assignments): 36 * 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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002846/0.3948, allocations: 193.7 kB / 0.5628 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.999e-05/0.3948, allocations: 47.72 kB / 0.5629 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006396/0.3955, allocations: 298.2 kB / 0.5631 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.3955, allocations: 4 kB / 0.5631 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.3955, allocations: 0 / 0.5631 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.3955, allocations: 3.984 kB / 0.5631 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.3967, allocations: 0.741 MB / 0.5639 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3967, allocations: 0 / 0.5639 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002513/0.3969, allocations: 43.91 kB / 0.5639 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002136/0.3972, allocations: 48.81 kB / 0.564 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.3972, allocations: 8 kB / 0.564 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001632/0.3988, allocations: 1.455 MB / 0.5654 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3988, allocations: 0 / 0.5654 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008307/0.3997, allocations: 0.4988 MB / 0.5659 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001539/0.3998, allocations: 59.73 kB / 0.5659 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.531e-05/0.3999, allocations: 12.06 kB / 0.5659 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002385/0.4001, allocations: 15.98 kB / 0.566 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.604e-05/0.4002, allocations: 23.95 kB / 0.566 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.126e-05/0.4002, allocations: 11.94 kB / 0.566 GB, free: 11.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003625/0.4006, allocations: 291.1 kB / 0.5663 GB, free: 10.78 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4006, allocations: 3.938 kB / 0.5663 GB, free: 10.78 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006041/0.4012, allocations: 123.9 kB / 0.5664 GB, free: 10.66 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,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 (24): * Single equations (assignments): 22 * 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.002688/0.4039, allocations: 1.369 MB / 0.5677 GB, free: 9.418 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009908/0.4048, allocations: 395 kB / 0.5681 GB, free: 9.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4048, allocations: 4 kB / 0.5681 GB, free: 9.016 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004374/0.4053, allocations: 234.5 kB / 0.5683 GB, free: 8.773 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007476/0.406, allocations: 133.8 kB / 0.5685 GB, free: 8.645 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007011/0.413, allocations: 4.11 MB / 0.5725 GB, free: 4.324 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000583/0.4136, allocations: 0.8504 MB / 0.5733 GB, free: 3.445 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002618/0.4139, allocations: 67.36 kB / 0.5734 GB, free: 3.379 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000257/0.4141, allocations: 163.4 kB / 0.5735 GB, free: 3.219 MB / 414.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4141, allocations: 0 / 0.5735 GB, free: 3.219 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04933/0.4635, allocations: 11.8 MB / 0.5851 GB, free: 7.516 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.89/14.36, allocations: 4.469 kB / 0.5851 GB, free: 7.516 MB / 430.1 MB " [Timeout remaining time 645] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.458326111081988] Failed to read output from testmodel.py, exit status != 0: 14.542388956993818 14.563027539 14.184286165 Calling exit ...