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.00139/0.00139, allocations: 73.02 kB / 21.24 MB, free: 0.5547 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.001549/0.001549, allocations: 159.6 kB / 24.5 MB, free: 3.719 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.514/1.514, allocations: 177.2 MB / 204.9 MB, free: 8.992 MB / 190.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.1754/0.1754, allocations: 29.42 MB / 290.7 MB, free: 3.27 MB / 270.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.002158/0.002158, allocations: 63.91 kB / 431.2 MB, free: 3.223 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3521, allocations: 62.43 MB / 493.6 MB, free: 37.76 MB / 446.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005059/0.3572, allocations: 5.099 MB / 498.7 MB, free: 34.35 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001807/0.359, allocations: 1.495 MB / 0.4885 GB, free: 33.34 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002006/0.3592, allocations: 25.81 kB / 0.4885 GB, free: 33.32 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003349/0.3595, allocations: 121.8 kB / 0.4886 GB, free: 33.26 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005618/0.3601, allocations: 320.3 kB / 0.4889 GB, free: 33.07 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002827/0.3604, allocations: 158.2 kB / 0.4891 GB, free: 32.98 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005983/0.361, allocations: 0.6974 MB / 0.4898 GB, free: 32.65 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003336/0.3613, allocations: 333.3 kB / 0.4901 GB, free: 32.49 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002903/0.3616, allocations: 299.9 kB / 0.4904 GB, free: 32.36 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003303/0.3619, allocations: 281.5 kB / 0.4906 GB, free: 32.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.968e-05/0.362, allocations: 45.28 kB / 0.4907 GB, free: 32.25 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.818e-05/0.3621, allocations: 45.22 kB / 0.4907 GB, free: 32.25 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001326/0.3622, allocations: 156 kB / 0.4909 GB, free: 32.17 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001961/0.3624, allocations: 216.9 kB / 0.4911 GB, free: 32.06 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004808/0.3629, allocations: 0.6034 MB / 0.4917 GB, free: 31.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3629, allocations: 4 kB / 0.4917 GB, free: 31.81 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3629, allocations: 0 / 0.4917 GB, free: 31.81 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.3629, allocations: 0 / 0.4917 GB, free: 31.81 MB / 446.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.001321/0.3642, allocations: 0.7182 MB / 0.4924 GB, free: 31.3 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/0.3643, allocations: 12.98 kB / 0.4924 GB, free: 31.3 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.3644, allocations: 64 kB / 0.4925 GB, free: 31.27 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007419/0.3651, allocations: 386.8 kB / 0.4928 GB, free: 31.02 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/0.3652, allocations: 91.97 kB / 0.4929 GB, free: 30.93 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.975e-05/0.3653, allocations: 39.22 kB / 0.4929 GB, free: 30.92 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007811/0.3661, allocations: 0.4944 MB / 0.4934 GB, free: 30.66 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.3661, allocations: 10.56 kB / 0.4934 GB, free: 30.65 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.005e-05/0.3662, allocations: 19.25 kB / 0.4935 GB, free: 30.64 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.3662, allocations: 9.719 kB / 0.4935 GB, free: 30.64 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000558/0.3667, allocations: 346.7 kB / 0.4938 GB, free: 30.52 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.3684, allocations: 1.743 MB / 0.4955 GB, free: 29.13 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003607/0.3688, allocations: 212.7 kB / 0.4957 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.3689, allocations: 90.38 kB / 0.4958 GB, free: 28.95 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.369, allocations: 6.906 kB / 0.4958 GB, free: 28.95 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.369, allocations: 36.72 kB / 0.4958 GB, free: 28.91 MB / 446.1 MB Notification: Performance of pre-optimization done (n=20): time 1.383e-06/0.369, allocations: 0 / 0.4958 GB, free: 28.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=22): time 0.001312/0.3703, allocations: 0.7791 MB / 0.4966 GB, free: 28.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.501e-05/0.3703, allocations: 105.8 kB / 0.4967 GB, free: 28.29 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002177/0.3705, allocations: 309.1 kB / 0.497 GB, free: 28.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.3706, allocations: 28.77 kB / 0.497 GB, free: 28.08 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.3707, allocations: 280.5 kB / 0.4973 GB, free: 27.85 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.485e-05/0.3707, allocations: 86.03 kB / 0.4974 GB, free: 27.79 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.63e-05/0.3708, allocations: 68.97 kB / 0.4974 GB, free: 27.74 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.973e-05/0.3709, allocations: 342.2 kB / 0.4978 GB, free: 27.41 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.371, allocations: 92.34 kB / 0.4978 GB, free: 27.38 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002179/0.3712, allocations: 216.8 kB / 0.4981 GB, free: 27.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/0.3723, allocations: 487.4 kB / 0.4985 GB, free: 26.89 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3723, allocations: 0 / 0.4985 GB, free: 26.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007064/0.373, allocations: 415.9 kB / 0.4989 GB, free: 26.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.373, allocations: 16.06 kB / 0.4989 GB, free: 26.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.373, allocations: 6 kB / 0.4989 GB, free: 26.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002914/0.3733, allocations: 79.88 kB / 0.499 GB, free: 26.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002152/0.3735, allocations: 60.33 kB / 0.4991 GB, free: 26.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001383/0.3749, allocations: 1.797 MB / 0.5008 GB, free: 25.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001912/0.3751, allocations: 16.69 kB / 0.5008 GB, free: 25.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.3751, allocations: 16.66 kB / 0.5009 GB, free: 25.08 MB / 446.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.0001525/0.3752, allocations: 191.3 kB / 0.501 GB, free: 24.92 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.043e-05/0.3753, allocations: 32.39 kB / 0.5011 GB, free: 24.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.591e-05/0.3754, allocations: 39.22 kB / 0.5011 GB, free: 24.88 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.3754, allocations: 7.219 kB / 0.5011 GB, free: 24.88 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3754, allocations: 6.938 kB / 0.5011 GB, free: 24.87 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.3754, allocations: 0 / 0.5011 GB, free: 24.87 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008825/0.3762, allocations: 0.6101 MB / 0.5017 GB, free: 24.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.3762, allocations: 4.062 kB / 0.5017 GB, free: 24.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002312/0.3765, allocations: 45.48 kB / 0.5018 GB, free: 24.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.84e-05/0.3765, allocations: 33.97 kB / 0.5018 GB, free: 24.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.3766, allocations: 7.219 kB / 0.5018 GB, free: 24.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005416/0.3771, allocations: 1.248 MB / 0.503 GB, free: 23.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.3771, allocations: 7.156 kB / 0.503 GB, free: 23.19 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005745/0.3777, allocations: 0.499 MB / 0.5035 GB, free: 22.85 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.242e-05/0.3778, allocations: 39.59 kB / 0.5036 GB, free: 22.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.412e-05/0.3778, allocations: 14.34 kB / 0.5036 GB, free: 22.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001881/0.378, allocations: 7 kB / 0.5036 GB, free: 22.81 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.619e-05/0.378, allocations: 23.8 kB / 0.5036 GB, free: 22.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.378, allocations: 3.219 kB / 0.5036 GB, free: 22.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000138/0.3782, allocations: 209 kB / 0.5038 GB, free: 22.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3782, allocations: 0 / 0.5038 GB, free: 22.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004546/0.3786, allocations: 84.94 kB / 0.5039 GB, free: 22.69 MB / 446.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 8.334e-05/0.3787, allocations: 107.7 kB / 0.504 GB, free: 22.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006051/0.3793, allocations: 371.5 kB / 0.5043 GB, free: 22.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3793, allocations: 4.062 kB / 0.5043 GB, free: 22.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002804/0.3796, allocations: 210.8 kB / 0.5045 GB, free: 22.23 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005941/0.3802, allocations: 88.36 kB / 0.5046 GB, free: 22.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.3814, allocations: 0.9308 MB / 0.5055 GB, free: 21.61 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000182/0.3816, allocations: 244.8 kB / 0.5058 GB, free: 21.51 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001326/0.3817, allocations: 43.3 kB / 0.5058 GB, free: 21.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.232e-05/0.3818, allocations: 28 kB / 0.5058 GB, free: 21.48 MB / 446.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3818, allocations: 0 / 0.5058 GB, free: 21.48 MB / 446.1 MB Notification: Performance of Templates: time 0.007547/0.3893, allocations: 4.016 MB / 0.5098 GB, free: 20.99 MB / 446.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 -s ida -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.1011823560111225] Failed to read output from testmodel.py, exit status != 0: 0.3977648749714717 0.40941902900000005 0.043877280000000005 Calling exit ...