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.0008096/0.0008096, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008545/0.0008545, allocations: 170 kB / 23.95 MB, free: 0.6055 MB / 18.57 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 0.9225/0.9225, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.2472/0.2472, allocations: 29.41 MB / 290.1 MB, free: 2.465 MB / 266.7 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.544e-05/1.678e-05, allocations: 2.984 kB / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.004986/0.005002, allocations: 5.084 MB / 435.3 MB, free: 8.496 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002121/0.007124, allocations: 1.503 MB / 436.8 MB, free: 6.988 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003034/0.007427, allocations: 23.81 kB / 436.8 MB, free: 6.965 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003887/0.007816, allocations: 130.9 kB / 436.9 MB, free: 6.836 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007557/0.008571, allocations: 317.9 kB / 437.3 MB, free: 6.523 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003547/0.008926, allocations: 171.5 kB / 437.4 MB, free: 6.355 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000982/0.009908, allocations: 0.712 MB / 438.1 MB, free: 5.641 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003942/0.0103, allocations: 332.3 kB / 438.5 MB, free: 5.305 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004777/0.01078, allocations: 422.9 kB / 438.9 MB, free: 4.891 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003092/0.01109, allocations: 243.3 kB / 439.1 MB, free: 4.652 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 5.084e-05/0.01114, allocations: 51.98 kB / 439.2 MB, free: 4.602 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.93e-05/0.01119, allocations: 44 kB / 439.2 MB, free: 4.559 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.0113, allocations: 159.5 kB / 439.4 MB, free: 4.402 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001361/0.01144, allocations: 183.5 kB / 439.5 MB, free: 4.223 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004662/0.01191, allocations: 0.5958 MB / 440.1 MB, free: 3.625 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.01191, allocations: 0 / 440.1 MB, free: 3.625 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.083e-06/0.01191, allocations: 0 / 440.1 MB, free: 3.625 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.01192, allocations: 4 kB / 440.1 MB, free: 3.621 MB / 410.7 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.0008621/0.01278, allocations: 0.7173 MB / 440.9 MB, free: 2.875 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.01282, allocations: 15.98 kB / 440.9 MB, free: 2.859 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.778e-05/0.01289, allocations: 82.7 kB / 441 MB, free: 2.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.697e-05/0.01295, allocations: 56.61 kB / 441 MB, free: 2.715 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005052/0.01346, allocations: 392.8 kB / 441.4 MB, free: 2.309 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.593e-05/0.01356, allocations: 92.95 kB / 441.5 MB, free: 2.207 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.882e-05/0.01361, allocations: 47.94 kB / 441.5 MB, free: 2.16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005641/0.01418, allocations: 0.497 MB / 442 MB, free: 1.621 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.0142, allocations: 3.953 kB / 442 MB, free: 1.617 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.799e-05/0.01423, allocations: 16 kB / 442 MB, free: 1.602 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.01424, allocations: 12 kB / 442.1 MB, free: 1.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004149/0.01466, allocations: 343.6 kB / 442.4 MB, free: 1.258 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1816/0.1962, allocations: 1.794 MB / 444.2 MB, free: 53.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003447/0.1966, allocations: 209.9 kB / 444.4 MB, free: 53.54 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.1967, allocations: 91.95 kB / 444.5 MB, free: 53.52 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.1967, allocations: 4.562 kB / 444.5 MB, free: 53.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.1967, allocations: 42.11 kB / 444.5 MB, free: 53.48 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 1.944e-06/0.1967, allocations: 0 / 444.5 MB, free: 53.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.001165/0.1979, allocations: 0.7743 MB / 445.3 MB, free: 53.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.484e-05/0.1979, allocations: 109.6 kB / 445.4 MB, free: 53.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002166/0.1981, allocations: 340 kB / 445.7 MB, free: 52.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.148e-05/0.1981, allocations: 29.64 kB / 445.8 MB, free: 52.92 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.689e-05/0.1982, allocations: 275 kB / 446 MB, free: 52.78 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.502e-05/0.1983, allocations: 80.58 kB / 446.1 MB, free: 52.72 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.001e-05/0.1983, allocations: 70.98 kB / 446.2 MB, free: 52.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.064e-05/0.1984, allocations: 344.3 kB / 446.5 MB, free: 52.35 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.1985, allocations: 81.97 kB / 446.6 MB, free: 52.33 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.1986, allocations: 215.7 kB / 446.8 MB, free: 52.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000636/0.1993, allocations: 485.8 kB / 447.3 MB, free: 51.88 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1993, allocations: 3.094 kB / 447.3 MB, free: 51.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004549/0.1997, allocations: 422 kB / 447.7 MB, free: 51.69 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.1997, allocations: 6.781 kB / 447.7 MB, free: 51.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.1997, allocations: 6.312 kB / 447.7 MB, free: 51.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000195/0.1999, allocations: 73.12 kB / 447.8 MB, free: 51.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.2001, allocations: 69.61 kB / 447.9 MB, free: 51.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/0.2012, allocations: 1.818 MB / 449.7 MB, free: 50.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.2013, allocations: 17.48 kB / 449.7 MB, free: 50.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.499e-05/0.2013, allocations: 20.34 kB / 449.7 MB, free: 50.06 MB / 410.7 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.0001428/0.2015, allocations: 195.9 kB / 449.9 MB, free: 49.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.627e-05/0.2015, allocations: 36.81 kB / 449.9 MB, free: 49.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.581e-05/0.2015, allocations: 34.75 kB / 450 MB, free: 49.86 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.2015, allocations: 8.422 kB / 450 MB, free: 49.86 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.2016, allocations: 0 / 450 MB, free: 49.86 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2016, allocations: 0 / 450 MB, free: 49.86 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006393/0.2022, allocations: 0.6756 MB / 450.7 MB, free: 49.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2022, allocations: 11.03 kB / 450.7 MB, free: 49.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001256/0.2023, allocations: 42.47 kB / 450.7 MB, free: 49.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-05/0.2024, allocations: 21.88 kB / 450.7 MB, free: 49.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.2024, allocations: 7.125 kB / 450.7 MB, free: 49.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003637/0.2028, allocations: 1.271 MB / 452 MB, free: 48.13 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2028, allocations: 0 / 452 MB, free: 48.13 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003558/0.2031, allocations: 0.506 MB / 452.5 MB, free: 47.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.101e-05/0.2032, allocations: 47.72 kB / 452.6 MB, free: 47.76 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.2032, allocations: 11.34 kB / 452.6 MB, free: 47.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.797e-05/0.2033, allocations: 8.875 kB / 452.6 MB, free: 47.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.682e-05/0.2033, allocations: 17.44 kB / 452.6 MB, free: 47.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.2033, allocations: 14.12 kB / 452.6 MB, free: 47.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001249/0.2035, allocations: 225.7 kB / 452.8 MB, free: 47.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2035, allocations: 0 / 452.8 MB, free: 47.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003017/0.2038, allocations: 94.09 kB / 452.9 MB, free: 47.62 MB / 410.7 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.0004645/0.2042, allocations: 1.036 MB / 454 MB, free: 46.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004124/0.2047, allocations: 358 kB / 454.3 MB, free: 46.56 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.2047, allocations: 2.281 kB / 454.3 MB, free: 46.56 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001526/0.2048, allocations: 210.4 kB / 454.5 MB, free: 46.42 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004073/0.2052, allocations: 113.8 kB / 454.6 MB, free: 46.39 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002584/0.2078, allocations: 3.609 MB / 458.2 MB, free: 43.98 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001641/0.208, allocations: 241.5 kB / 458.5 MB, free: 43.87 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.2081, allocations: 50.73 kB / 458.5 MB, free: 43.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.2082, allocations: 146 kB / 458.7 MB, free: 43.75 MB / 410.7 MB Notification: Performance of SimCode: time 6.31e-07/0.2082, allocations: 0 / 458.7 MB, free: 43.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02573/0.2339, allocations: 9.428 MB / 468.1 MB, free: 42.12 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.164/8.398, allocations: 6.25 kB / 468.1 MB, free: 42.12 MB / 410.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 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: 10.468100595287979] Failed to read output from testmodel.py, exit status != 0: 8.49222600273788 8.503477678 8.489082946 Calling exit ...