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.0008121/0.0008121, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.0008738/0.0008738, allocations: 170 kB / 23.95 MB, free: 0.6094 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.8744/0.8744, allocations: 177.1 MB / 204.3 MB, free: 5.699 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.2121/0.2121, allocations: 29.41 MB / 290.1 MB, free: 2.441 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.392e-06/1.392e-06, allocations: 0 / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.947e-05/2.086e-05, allocations: 4.109 kB / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.004645/0.004666, allocations: 5.083 MB / 435.3 MB, free: 8.484 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002192/0.006858, allocations: 1.499 MB / 436.8 MB, free: 6.98 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002926/0.007151, allocations: 27.75 kB / 436.8 MB, free: 6.953 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003512/0.007502, allocations: 127 kB / 436.9 MB, free: 6.828 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006723/0.008174, allocations: 325.9 kB / 437.3 MB, free: 6.508 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003188/0.008493, allocations: 159.6 kB / 437.4 MB, free: 6.352 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006263/0.009119, allocations: 0.7236 MB / 438.1 MB, free: 5.625 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003417/0.009461, allocations: 332.2 kB / 438.5 MB, free: 5.289 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003795/0.009841, allocations: 414.9 kB / 438.9 MB, free: 4.883 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002763/0.01012, allocations: 243.3 kB / 439.1 MB, free: 4.645 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.454e-05/0.01016, allocations: 44 kB / 439.1 MB, free: 4.602 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.033e-05/0.01021, allocations: 48 kB / 439.2 MB, free: 4.555 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.01032, allocations: 167.5 kB / 439.4 MB, free: 4.391 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.01045, allocations: 179.6 kB / 439.5 MB, free: 4.215 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004755/0.01093, allocations: 0.6036 MB / 440.1 MB, free: 3.609 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.01093, allocations: 0 / 440.1 MB, free: 3.609 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.01093, allocations: 0 / 440.1 MB, free: 3.609 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.01094, allocations: 3.938 kB / 440.1 MB, free: 3.605 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.0009045/0.01185, allocations: 0.7135 MB / 440.8 MB, free: 2.863 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.01189, allocations: 11.98 kB / 440.9 MB, free: 2.852 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.714e-05/0.01195, allocations: 82.72 kB / 440.9 MB, free: 2.762 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.247e-05/0.01203, allocations: 52.61 kB / 441 MB, free: 2.711 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000494/0.01252, allocations: 400.8 kB / 441.4 MB, free: 2.297 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.687e-05/0.0126, allocations: 84.97 kB / 441.5 MB, free: 2.203 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.226e-05/0.01265, allocations: 47.94 kB / 441.5 MB, free: 2.156 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005226/0.01317, allocations: 0.5009 MB / 442 MB, free: 1.613 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.01319, allocations: 11.88 kB / 442 MB, free: 1.602 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.662e-05/0.01322, allocations: 20 kB / 442 MB, free: 1.582 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.01323, allocations: 8 kB / 442.1 MB, free: 1.574 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003944/0.01362, allocations: 343.7 kB / 442.4 MB, free: 1.242 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1613/0.175, allocations: 1.789 MB / 444.2 MB, free: 53.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003269/0.1753, allocations: 213.1 kB / 444.4 MB, free: 53.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.63e-05/0.1754, allocations: 89.5 kB / 444.5 MB, free: 53.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.1754, allocations: 6.75 kB / 444.5 MB, free: 53.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.1754, allocations: 35.77 kB / 444.5 MB, free: 53.56 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 2.394e-06/0.1754, allocations: 3.125 kB / 444.5 MB, free: 53.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.00105/0.1765, allocations: 0.7741 MB / 445.3 MB, free: 53.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.095e-05/0.1765, allocations: 109.7 kB / 445.4 MB, free: 53.15 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002024/0.1767, allocations: 342 kB / 445.7 MB, free: 53.04 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/0.1767, allocations: 32.77 kB / 445.8 MB, free: 53 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.789e-05/0.1768, allocations: 277.1 kB / 446 MB, free: 52.83 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.299e-05/0.1768, allocations: 78.19 kB / 446.1 MB, free: 52.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.294e-05/0.1769, allocations: 70.91 kB / 446.2 MB, free: 52.73 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.167e-05/0.1769, allocations: 346 kB / 446.5 MB, free: 52.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.177, allocations: 79.7 kB / 446.6 MB, free: 52.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.1772, allocations: 217.8 kB / 446.8 MB, free: 52.19 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006965/0.1779, allocations: 493.9 kB / 447.3 MB, free: 51.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1779, allocations: 0 / 447.3 MB, free: 51.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004553/0.1783, allocations: 411.2 kB / 447.7 MB, free: 51.74 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.1783, allocations: 9.719 kB / 447.7 MB, free: 51.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.1784, allocations: 4.844 kB / 447.7 MB, free: 51.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001926/0.1785, allocations: 79.09 kB / 447.8 MB, free: 51.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.1787, allocations: 74.08 kB / 447.9 MB, free: 51.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001065/0.1798, allocations: 1.81 MB / 449.7 MB, free: 50.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001359/0.1799, allocations: 21.88 kB / 449.7 MB, free: 50.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.1799, allocations: 15.34 kB / 449.7 MB, free: 50.11 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.0001481/0.1801, allocations: 193.2 kB / 449.9 MB, free: 49.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.781e-05/0.1801, allocations: 41.98 kB / 449.9 MB, free: 49.93 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.419e-05/0.1801, allocations: 39.73 kB / 450 MB, free: 49.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.1801, allocations: 3.281 kB / 450 MB, free: 49.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1801, allocations: 0 / 450 MB, free: 49.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1801, allocations: 6.938 kB / 450 MB, free: 49.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006415/0.1808, allocations: 0.6809 MB / 450.7 MB, free: 49.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.1808, allocations: 2.625 kB / 450.7 MB, free: 49.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001294/0.1809, allocations: 45.28 kB / 450.7 MB, free: 49.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.289e-05/0.181, allocations: 21.52 kB / 450.7 MB, free: 49.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/0.181, allocations: 8.531 kB / 450.7 MB, free: 49.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003739/0.1813, allocations: 1.273 MB / 452 MB, free: 48.17 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1814, allocations: 7.062 kB / 452 MB, free: 48.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003502/0.1817, allocations: 0.4998 MB / 452.5 MB, free: 47.83 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.89e-05/0.1818, allocations: 47.31 kB / 452.6 MB, free: 47.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.879e-05/0.1818, allocations: 7.375 kB / 452.6 MB, free: 47.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.723e-05/0.1819, allocations: 10.81 kB / 452.6 MB, free: 47.79 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.682e-05/0.1819, allocations: 17.58 kB / 452.6 MB, free: 47.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-06/0.1819, allocations: 6.594 kB / 452.6 MB, free: 47.79 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001141/0.182, allocations: 233.1 kB / 452.8 MB, free: 47.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.182, allocations: 3.906 kB / 452.8 MB, free: 47.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003119/0.1824, allocations: 84.66 kB / 452.9 MB, free: 47.66 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.0004614/0.1828, allocations: 1.038 MB / 454 MB, free: 46.79 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004068/0.1832, allocations: 353.8 kB / 454.3 MB, free: 46.61 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1832, allocations: 0 / 454.3 MB, free: 46.61 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001545/0.1834, allocations: 214.7 kB / 454.5 MB, free: 46.46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004108/0.1838, allocations: 118.3 kB / 454.6 MB, free: 46.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002489/0.1863, allocations: 3.61 MB / 458.2 MB, free: 44 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001313/0.1864, allocations: 240.5 kB / 458.5 MB, free: 43.9 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001156/0.1865, allocations: 48.66 kB / 458.5 MB, free: 43.89 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.1866, allocations: 142.6 kB / 458.7 MB, free: 43.79 MB / 410.7 MB Notification: Performance of SimCode: time 1.112e-06/0.1866, allocations: 0 / 458.7 MB, free: 43.79 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02149/0.2081, allocations: 9.434 MB / 468.1 MB, free: 42.14 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.806/8.015, allocations: 3.156 kB / 468.1 MB, free: 42.14 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 & /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: 9.826283138245344] Failed to read output from testmodel.py, exit status != 0: 8.10874119400978 8.11999438 8.107018566 Calling exit ...