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.001564/0.001564, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001842/0.001842, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.385/1.385, allocations: 230.6 MB / 258.3 MB, free: 7.984 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.1791/0.1791, allocations: 38.52 MB / 353.2 MB, free: 12.53 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: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") [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.002041/0.002041, allocations: 71.89 kB / 493.8 MB, free: 4.379 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3051, allocations: 62.46 MB / 0.5432 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007105/0.3122, allocations: 5.442 MB / 0.5485 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00264/0.3148, allocations: 1.624 MB / 0.5501 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002983/0.3151, allocations: 23.53 kB / 0.5501 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003941/0.3155, allocations: 133 kB / 0.5503 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007726/0.3163, allocations: 316.4 kB / 0.5506 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003912/0.3167, allocations: 161.3 kB / 0.5507 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009081/0.3176, allocations: 0.7022 MB / 0.5514 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004625/0.318, allocations: 335.2 kB / 0.5517 GB, free: 9.902 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004384/0.3185, allocations: 300.5 kB / 0.552 GB, free: 9.734 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004594/0.3189, allocations: 298 kB / 0.5523 GB, free: 9.551 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.671e-05/0.319, allocations: 44.84 kB / 0.5523 GB, free: 9.551 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.118e-05/0.3191, allocations: 47 kB / 0.5524 GB, free: 9.551 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001757/0.3193, allocations: 164.5 kB / 0.5525 GB, free: 9.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002666/0.3195, allocations: 264.5 kB / 0.5528 GB, free: 9.258 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007488/0.3203, allocations: 0.6033 MB / 0.5534 GB, free: 8.824 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.3203, allocations: 1.156 kB / 0.5534 GB, free: 8.824 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3203, allocations: 0 / 0.5534 GB, free: 8.824 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.3203, allocations: 0 / 0.5534 GB, free: 8.824 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.001464/0.3218, allocations: 0.7163 MB / 0.5541 GB, free: 8.258 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.3218, allocations: 12.98 kB / 0.5541 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.3219, allocations: 58.75 kB / 0.5542 GB, free: 8.223 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007588/0.3227, allocations: 396.5 kB / 0.5545 GB, free: 7.91 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001238/0.3228, allocations: 88.56 kB / 0.5546 GB, free: 7.828 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.982e-05/0.3229, allocations: 43.25 kB / 0.5547 GB, free: 7.812 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008239/0.3237, allocations: 0.5024 MB / 0.5551 GB, free: 7.457 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.398e-05/0.3237, allocations: 5.188 kB / 0.5552 GB, free: 7.453 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.502e-05/0.3237, allocations: 24.56 kB / 0.5552 GB, free: 7.434 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.3238, allocations: 10.69 kB / 0.5552 GB, free: 7.434 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006489/0.3244, allocations: 337.8 kB / 0.5555 GB, free: 7.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002461/0.3269, allocations: 1.898 MB / 0.5574 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004439/0.3273, allocations: 214.6 kB / 0.5576 GB, free: 5.441 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001936/0.3275, allocations: 94.78 kB / 0.5577 GB, free: 5.379 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.3275, allocations: 2.062 kB / 0.5577 GB, free: 5.379 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.3276, allocations: 32.84 kB / 0.5577 GB, free: 5.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.543e-06/0.3276, allocations: 0 / 0.5577 GB, free: 5.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001657/0.3292, allocations: 0.7824 MB / 0.5585 GB, free: 4.539 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.756e-05/0.3293, allocations: 106.8 kB / 0.5586 GB, free: 4.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003578/0.3296, allocations: 333.6 kB / 0.5589 GB, free: 4.074 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.701e-05/0.3297, allocations: 29.7 kB / 0.5589 GB, free: 4.039 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001965/0.3299, allocations: 280.3 kB / 0.5592 GB, free: 3.758 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.931e-05/0.3299, allocations: 79.33 kB / 0.5592 GB, free: 3.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.33, allocations: 69.64 kB / 0.5593 GB, free: 3.605 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.3302, allocations: 342.8 kB / 0.5596 GB, free: 3.262 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002053/0.3304, allocations: 87.72 kB / 0.5597 GB, free: 3.176 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003156/0.3307, allocations: 217 kB / 0.5599 GB, free: 2.902 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001134/0.3318, allocations: 495.5 kB / 0.5604 GB, free: 2.359 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3318, allocations: 4 kB / 0.5604 GB, free: 2.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009196/0.3328, allocations: 413.8 kB / 0.5608 GB, free: 1.941 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.3328, allocations: 11.94 kB / 0.5608 GB, free: 1.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.3328, allocations: 4 kB / 0.5608 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003142/0.3331, allocations: 85.03 kB / 0.5609 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002452/0.3334, allocations: 63.91 kB / 0.561 GB, free: 1.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002247/0.3356, allocations: 1.831 MB / 0.5627 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/0.3359, allocations: 15.98 kB / 0.5628 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.562e-05/0.3359, allocations: 20 kB / 0.5628 GB, free: 15.8 MB / 414.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.0002597/0.3361, allocations: 196.9 kB / 0.563 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.744e-05/0.3362, allocations: 35.77 kB / 0.563 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.967e-05/0.3363, allocations: 43.19 kB / 0.563 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.856e-06/0.3363, allocations: 7.984 kB / 0.5631 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/0.3363, allocations: 4 kB / 0.5631 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.3363, allocations: 0 / 0.5631 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001273/0.3376, allocations: 0.7473 MB / 0.5638 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.3376, allocations: 0 / 0.5638 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002433/0.3378, allocations: 51.91 kB / 0.5638 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.508e-05/0.3379, allocations: 20.84 kB / 0.5639 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.3379, allocations: 4 kB / 0.5639 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/0.3389, allocations: 1.287 MB / 0.5651 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3389, allocations: 4.156 kB / 0.5651 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007661/0.3397, allocations: 0.497 MB / 0.5656 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.3398, allocations: 47.75 kB / 0.5657 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.203e-05/0.3399, allocations: 8 kB / 0.5657 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001947/0.3401, allocations: 8 kB / 0.5657 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.698e-05/0.3401, allocations: 19.95 kB / 0.5657 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.3401, allocations: 12 kB / 0.5657 GB, free: 12.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002457/0.3404, allocations: 227.2 kB / 0.5659 GB, free: 12.38 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3404, allocations: 3.938 kB / 0.5659 GB, free: 12.38 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005309/0.3409, allocations: 92 kB / 0.566 GB, free: 12.29 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.0001126/0.341, allocations: 107.1 kB / 0.5661 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007421/0.3418, allocations: 359.3 kB / 0.5664 GB, free: 11.81 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3418, allocations: 0 / 0.5664 GB, free: 11.81 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003488/0.3421, allocations: 210.5 kB / 0.5667 GB, free: 11.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006626/0.3428, allocations: 103.9 kB / 0.5667 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001666/0.3445, allocations: 0.9815 MB / 0.5677 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004772/0.3449, allocations: 0.8387 MB / 0.5685 GB, free: 9.598 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.353e-05/0.345, allocations: 31.42 kB / 0.5686 GB, free: 9.566 MB / 414.1 MB Notification: Performance of SimCode: time 7.72e-07/0.345, allocations: 4 kB / 0.5686 GB, free: 9.562 MB / 414.1 MB Notification: Performance of Templates: time 0.009897/0.3549, allocations: 6.961 MB / 0.5754 GB, free: 2.621 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile [Timeout 660] (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 & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.162939504021779] Failed to read output from testmodel.py, exit status != 0: 0.36389248399063945 0.37744390999999994 0.054086948 Calling exit ...