Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.001272/0.001272, 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.001321/0.001321, allocations: 214.7 kB / 24.52 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.558/1.558, allocations: 230.6 MB / 258.3 MB, free: 7.75 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.1921/0.1921, allocations: 38.55 MB / 353.2 MB, free: 12.33 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_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",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.001925/0.001925, allocations: 71.88 kB / 493.3 MB, free: 4.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3466, allocations: 62.47 MB / 0.5427 GB, free: 272 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007871/0.3545, allocations: 5.084 MB / 0.5477 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002937/0.3574, allocations: 1.485 MB / 0.5491 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003029/0.3577, allocations: 23.69 kB / 0.5491 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004094/0.3581, allocations: 121.2 kB / 0.5493 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007859/0.3589, allocations: 319.5 kB / 0.5496 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004091/0.3593, allocations: 158.2 kB / 0.5497 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001033/0.3604, allocations: 0.7058 MB / 0.5504 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005163/0.3609, allocations: 339.2 kB / 0.5507 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004991/0.3614, allocations: 299.3 kB / 0.551 GB, free: 9.926 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004735/0.3619, allocations: 303.1 kB / 0.5513 GB, free: 9.738 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.259e-05/0.3619, allocations: 45.41 kB / 0.5513 GB, free: 9.738 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.362, allocations: 46.03 kB / 0.5514 GB, free: 9.738 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002018/0.3622, allocations: 157.6 kB / 0.5515 GB, free: 9.625 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002824/0.3625, allocations: 215.5 kB / 0.5517 GB, free: 9.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008424/0.3634, allocations: 0.6052 MB / 0.5523 GB, free: 9.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3634, allocations: 0.9375 kB / 0.5523 GB, free: 9.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3634, allocations: 0 / 0.5523 GB, free: 9.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.3634, allocations: 3.938 kB / 0.5523 GB, free: 9.066 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001568/0.365, allocations: 0.7175 MB / 0.553 GB, free: 8.496 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.365, allocations: 18.08 kB / 0.5531 GB, free: 8.488 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.481e-05/0.365, allocations: 11.59 kB / 0.5531 GB, free: 8.488 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/0.3651, allocations: 81.69 kB / 0.5531 GB, free: 8.414 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.3652, allocations: 58.56 kB / 0.5532 GB, free: 8.383 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007609/0.366, allocations: 395.4 kB / 0.5536 GB, free: 8.066 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.3661, allocations: 85.38 kB / 0.5537 GB, free: 7.992 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.862e-05/0.3662, allocations: 43.03 kB / 0.5537 GB, free: 7.977 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008734/0.3671, allocations: 0.5051 MB / 0.5542 GB, free: 7.621 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.749e-05/0.3671, allocations: 5.219 kB / 0.5542 GB, free: 7.617 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.178e-05/0.3672, allocations: 16.53 kB / 0.5542 GB, free: 7.605 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.3672, allocations: 11.28 kB / 0.5542 GB, free: 7.605 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006659/0.3678, allocations: 342.2 kB / 0.5546 GB, free: 7.438 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002527/0.3704, allocations: 1.804 MB / 0.5563 GB, free: 5.848 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004544/0.3708, allocations: 211.6 kB / 0.5565 GB, free: 5.699 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001978/0.371, allocations: 90.22 kB / 0.5566 GB, free: 5.641 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.936e-05/0.371, allocations: 3.75 kB / 0.5566 GB, free: 5.641 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.213e-05/0.3711, allocations: 33.09 kB / 0.5566 GB, free: 5.602 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.734e-06/0.3711, allocations: 5 kB / 0.5566 GB, free: 5.598 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001751/0.3728, allocations: 0.7873 MB / 0.5574 GB, free: 4.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.166e-05/0.3729, allocations: 106.8 kB / 0.5575 GB, free: 4.781 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003584/0.3732, allocations: 333.6 kB / 0.5578 GB, free: 4.445 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.35e-05/0.3733, allocations: 33.64 kB / 0.5579 GB, free: 4.406 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002033/0.3735, allocations: 288.4 kB / 0.5581 GB, free: 4.117 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.872e-05/0.3735, allocations: 75.33 kB / 0.5582 GB, free: 4.043 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.3736, allocations: 73.64 kB / 0.5583 GB, free: 3.965 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.3738, allocations: 338.8 kB / 0.5586 GB, free: 3.625 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002116/0.374, allocations: 87.72 kB / 0.5587 GB, free: 3.539 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003057/0.3743, allocations: 217 kB / 0.5589 GB, free: 3.266 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00122/0.3755, allocations: 495.4 kB / 0.5594 GB, free: 2.727 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.3755, allocations: 4 kB / 0.5594 GB, free: 2.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009017/0.3764, allocations: 410 kB / 0.5598 GB, free: 2.312 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.3765, allocations: 8 kB / 0.5598 GB, free: 2.305 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.3765, allocations: 4 kB / 0.5598 GB, free: 2.301 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003468/0.3768, allocations: 80.78 kB / 0.5598 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.3771, allocations: 63.91 kB / 0.5599 GB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002078/0.3792, allocations: 1.819 MB / 0.5617 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002488/0.3794, allocations: 12 kB / 0.5617 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.591e-05/0.3794, allocations: 16 kB / 0.5617 GB, free: 208 kB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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.0002514/0.3797, allocations: 197.8 kB / 0.5619 GB, free: 0 / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.3798, allocations: 47.75 kB / 0.5619 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.117e-05/0.3799, allocations: 39.23 kB / 0.562 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3799, allocations: 4 kB / 0.562 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.3799, allocations: 0 / 0.562 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3799, allocations: 0 / 0.562 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001284/0.3812, allocations: 0.6739 MB / 0.5626 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3812, allocations: 0 / 0.5626 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002648/0.3815, allocations: 51.91 kB / 0.5627 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.872e-05/0.3815, allocations: 20.84 kB / 0.5627 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.3816, allocations: 8 kB / 0.5627 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001001/0.3826, allocations: 1.279 MB / 0.564 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3826, allocations: 3.938 kB / 0.564 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007801/0.3833, allocations: 0.5075 MB / 0.5645 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.3834, allocations: 43.8 kB / 0.5645 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.419e-05/0.3835, allocations: 8 kB / 0.5645 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000219/0.3837, allocations: 11.98 kB / 0.5645 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.567e-05/0.3838, allocations: 15.97 kB / 0.5645 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.3838, allocations: 12.03 kB / 0.5646 GB, free: 13.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000248/0.384, allocations: 239.1 kB / 0.5648 GB, free: 12.85 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.384, allocations: 0 / 0.5648 GB, free: 12.85 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005389/0.3846, allocations: 84 kB / 0.5649 GB, free: 12.77 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001111/0.3857, allocations: 1.034 MB / 0.5659 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007632/0.3865, allocations: 369.6 kB / 0.5662 GB, free: 11.33 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.3865, allocations: 4 kB / 0.5662 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003647/0.3868, allocations: 207.7 kB / 0.5664 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006976/0.3875, allocations: 120 kB / 0.5665 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005574/0.3931, allocations: 3.694 MB / 0.5702 GB, free: 7.078 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.3934, allocations: 243.7 kB / 0.5704 GB, free: 6.816 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002068/0.3936, allocations: 51.25 kB / 0.5704 GB, free: 6.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002103/0.3938, allocations: 139.4 kB / 0.5706 GB, free: 6.633 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3938, allocations: 0 / 0.5706 GB, free: 6.633 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03599/0.4298, allocations: 9.037 MB / 0.5794 GB, free: 13.83 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.67/14.1, allocations: 0 / 0.5794 GB, free: 13.83 MB / 430.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.131990714929998] Failed to read output from testmodel.py, exit status != 0: 14.28387277701404 14.309873234 13.941724713 Calling exit ...