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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 123.2 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002028/0.002028, allocations: 186.9 kB / 20.73 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 225.6 MB / 249.1 MB, free: 3.633 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.1927/0.1927, allocations: 38.5 MB / 342.5 MB, free: 8.047 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001978/0.001978, allocations: 60.78 kB / 478.6 MB, free: 33.66 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.103, allocations: 61.26 MB / 0.5272 GB, free: 1.379 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007884/0.1109, allocations: 5.306 MB / 0.5324 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002868/0.1137, allocations: 1.573 MB / 0.5339 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004021/0.1141, allocations: 23.88 kB / 0.5339 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005032/0.1146, allocations: 131 kB / 0.5341 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009741/0.1156, allocations: 314.1 kB / 0.5344 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004676/0.1161, allocations: 155.8 kB / 0.5345 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001093/0.1172, allocations: 0.6967 MB / 0.5352 GB, free: 9.156 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005624/0.1177, allocations: 367.8 kB / 0.5356 GB, free: 8.789 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005087/0.1182, allocations: 291 kB / 0.5358 GB, free: 8.504 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004799/0.1187, allocations: 306.8 kB / 0.5361 GB, free: 8.203 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.781e-05/0.1188, allocations: 48 kB / 0.5362 GB, free: 8.156 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.1189, allocations: 44 kB / 0.5362 GB, free: 8.113 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001645/0.1191, allocations: 151.5 kB / 0.5364 GB, free: 7.965 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002999/0.1194, allocations: 270.7 kB / 0.5366 GB, free: 7.699 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007775/0.1202, allocations: 0.5953 MB / 0.5372 GB, free: 7.102 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1202, allocations: 0 / 0.5372 GB, free: 7.102 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1202, allocations: 0 / 0.5372 GB, free: 7.102 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.506e-05/0.1202, allocations: 4 kB / 0.5372 GB, free: 7.098 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.001455/0.1216, allocations: 0.7927 MB / 0.538 GB, free: 6.254 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.1217, allocations: 15.89 kB / 0.538 GB, free: 6.238 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001006/0.1218, allocations: 82.7 kB / 0.5381 GB, free: 6.148 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.1219, allocations: 60.61 kB / 0.5381 GB, free: 6.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000889/0.1228, allocations: 463.9 kB / 0.5386 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.644e-05/0.1229, allocations: 58.7 kB / 0.5386 GB, free: 5.539 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.601e-05/0.1229, allocations: 47.95 kB / 0.5387 GB, free: 5.492 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008562/0.1238, allocations: 0.5008 MB / 0.5392 GB, free: 4.957 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/0.1238, allocations: 7.938 kB / 0.5392 GB, free: 4.949 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.901e-05/0.1239, allocations: 16 kB / 0.5392 GB, free: 4.934 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.1239, allocations: 8 kB / 0.5392 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006843/0.1246, allocations: 347.7 kB / 0.5395 GB, free: 4.582 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002689/0.1272, allocations: 1.98 MB / 0.5415 GB, free: 2.484 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004735/0.1277, allocations: 211.6 kB / 0.5417 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002022/0.1279, allocations: 90.66 kB / 0.5417 GB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.1279, allocations: 8 kB / 0.5417 GB, free: 2.145 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.53e-05/0.128, allocations: 42.5 kB / 0.5418 GB, free: 2.094 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.813e-06/0.128, allocations: 0 / 0.5418 GB, free: 2.094 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001828/0.1298, allocations: 0.8475 MB / 0.5426 GB, free: 1.191 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.578e-05/0.1299, allocations: 110.8 kB / 0.5427 GB, free: 1.059 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004085/0.1303, allocations: 329.6 kB / 0.543 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.729e-05/0.1303, allocations: 29.7 kB / 0.5431 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002143/0.1305, allocations: 276.2 kB / 0.5433 GB, free: 428 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.425e-05/0.1306, allocations: 83.31 kB / 0.5434 GB, free: 344 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.1307, allocations: 69.66 kB / 0.5435 GB, free: 268 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001859/0.1309, allocations: 346.9 kB / 0.5438 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.1311, allocations: 79.95 kB / 0.5439 GB, free: 15.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003108/0.1314, allocations: 213.1 kB / 0.5441 GB, free: 15.57 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001229/0.1327, allocations: 0.5543 MB / 0.5446 GB, free: 14.94 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1327, allocations: 0 / 0.5446 GB, free: 14.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008935/0.1336, allocations: 422.5 kB / 0.545 GB, free: 14.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.1336, allocations: 8 kB / 0.545 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.1336, allocations: 4 kB / 0.545 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003375/0.1339, allocations: 72.8 kB / 0.5451 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002424/0.1342, allocations: 63.91 kB / 0.5452 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00224/0.1364, allocations: 1.948 MB / 0.5471 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002405/0.1367, allocations: 15.98 kB / 0.5471 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.766e-05/0.1367, allocations: 16 kB / 0.5471 GB, free: 12.25 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.000266/0.1369, allocations: 193.7 kB / 0.5473 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.18e-05/0.137, allocations: 39.7 kB / 0.5473 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.169e-05/0.1371, allocations: 47.31 kB / 0.5474 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1371, allocations: 4 kB / 0.5474 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.1371, allocations: 0 / 0.5474 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.1371, allocations: 3.984 kB / 0.5474 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001325/0.1384, allocations: 0.7713 MB / 0.5481 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1384, allocations: 4.031 kB / 0.5481 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002606/0.1387, allocations: 51.91 kB / 0.5482 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.195e-05/0.1388, allocations: 20.84 kB / 0.5482 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.1388, allocations: 4 kB / 0.5482 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001164/0.14, allocations: 1.387 MB / 0.5496 GB, free: 9.504 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.14, allocations: 0 / 0.5496 GB, free: 9.504 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008056/0.1408, allocations: 0.5078 MB / 0.5501 GB, free: 8.973 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001438/0.1409, allocations: 113 kB / 0.5502 GB, free: 8.844 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.414e-05/0.141, allocations: 8 kB / 0.5502 GB, free: 8.836 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002004/0.1412, allocations: 11.98 kB / 0.5502 GB, free: 8.824 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.458e-05/0.1412, allocations: 19.98 kB / 0.5502 GB, free: 8.805 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.1412, allocations: 4.094 kB / 0.5502 GB, free: 8.801 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002623/0.1415, allocations: 231.2 kB / 0.5504 GB, free: 8.578 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1415, allocations: 0 / 0.5504 GB, free: 8.578 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005587/0.1421, allocations: 95.94 kB / 0.5505 GB, free: 8.484 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.001145/0.1432, allocations: 1.05 MB / 0.5515 GB, free: 7.398 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000789/0.144, allocations: 365.4 kB / 0.5519 GB, free: 7.031 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.144, allocations: 1.188 kB / 0.5519 GB, free: 7.031 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003775/0.1444, allocations: 210.6 kB / 0.5521 GB, free: 6.812 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006955/0.1451, allocations: 107.3 kB / 0.5522 GB, free: 6.715 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005563/0.1506, allocations: 3.689 MB / 0.5558 GB, free: 2.805 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005121/0.1512, allocations: 0.8465 MB / 0.5566 GB, free: 1.934 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001933/0.1513, allocations: 47.25 kB / 0.5567 GB, free: 1.887 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001895/0.1515, allocations: 143.3 kB / 0.5568 GB, free: 1.746 MB / 414.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1515, allocations: 0 / 0.5568 GB, free: 1.746 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0433/0.1948, allocations: 8.581 MB / 0.5652 GB, free: 9.328 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.94/13.13, allocations: 5.344 kB / 0.5652 GB, free: 9.324 MB / 430.1 MB " [Timeout remaining time 647] (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: 16.00782032776624] Failed to read output from testmodel.py, exit status != 0: 13.233090864028782 13.262173989999999 13.136616024 Calling exit ...