Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.001323/0.001323, allocations: 123.9 kB / 17.79 MB, free: 5.258 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.001353/0.001353, allocations: 189.2 kB / 20.73 MB, free: 2.324 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.394/1.394, allocations: 225.6 MB / 249.1 MB, free: 3.582 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1793/0.1793, allocations: 38.51 MB / 342.5 MB, free: 8.148 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-master/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_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 64.31 kB / 478.6 MB, free: 33.82 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09528/0.09717, allocations: 61.25 MB / 0.5272 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007305/0.1045, allocations: 5.209 MB / 0.5323 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003094/0.1076, allocations: 1.994 MB / 0.5342 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002306/0.1078, allocations: 15.88 kB / 0.5343 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000504/0.1083, allocations: 150.9 kB / 0.5344 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008186/0.1091, allocations: 369.9 kB / 0.5348 GB, free: 9.742 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004768/0.1096, allocations: 219.5 kB / 0.535 GB, free: 9.527 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008882/0.1105, allocations: 0.6967 MB / 0.5357 GB, free: 8.828 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004557/0.1109, allocations: 362.6 kB / 0.536 GB, free: 8.469 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004227/0.1114, allocations: 294.8 kB / 0.5363 GB, free: 8.18 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004284/0.1118, allocations: 298.8 kB / 0.5366 GB, free: 7.887 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.197e-05/0.1119, allocations: 48 kB / 0.5366 GB, free: 7.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00018/0.1121, allocations: 91.98 kB / 0.5367 GB, free: 7.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001617/0.1122, allocations: 155.5 kB / 0.5368 GB, free: 7.598 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002676/0.1125, allocations: 266.6 kB / 0.5371 GB, free: 7.336 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007904/0.1133, allocations: 0.6498 MB / 0.5377 GB, free: 6.684 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1133, allocations: 0 / 0.5377 GB, free: 6.684 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1133, allocations: 0 / 0.5377 GB, free: 6.684 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.519e-05/0.1133, allocations: 3.984 kB / 0.5377 GB, free: 6.68 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.0016/0.1149, allocations: 0.8616 MB / 0.5386 GB, free: 5.766 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.1149, allocations: 15.89 kB / 0.5386 GB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.994e-05/0.115, allocations: 74.72 kB / 0.5387 GB, free: 5.668 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.1151, allocations: 56.61 kB / 0.5387 GB, free: 5.613 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008554/0.116, allocations: 482.4 kB / 0.5392 GB, free: 5.102 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.359e-05/0.116, allocations: 33 kB / 0.5392 GB, free: 5.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.054e-05/0.1161, allocations: 36 kB / 0.5392 GB, free: 5.035 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007144/0.1168, allocations: 461.1 kB / 0.5397 GB, free: 4.547 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.278e-05/0.1168, allocations: 7.953 kB / 0.5397 GB, free: 4.539 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.874e-05/0.1169, allocations: 19.94 kB / 0.5397 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.1169, allocations: 8 kB / 0.5397 GB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004957/0.1174, allocations: 274.3 kB / 0.54 GB, free: 4.242 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002336/0.1197, allocations: 1.867 MB / 0.5418 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005377/0.1202, allocations: 235.7 kB / 0.542 GB, free: 2.008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.1204, allocations: 82.98 kB / 0.5421 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.767e-05/0.1204, allocations: 12.08 kB / 0.5421 GB, free: 1.906 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002944/0.1207, allocations: 184.3 kB / 0.5423 GB, free: 1.711 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.1207, allocations: 0 / 0.5423 GB, free: 1.711 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001734/0.1225, allocations: 0.9257 MB / 0.5432 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.239e-05/0.1225, allocations: 136.5 kB / 0.5433 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004788/0.123, allocations: 405.9 kB / 0.5437 GB, free: 164 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.87e-05/0.123, allocations: 29.7 kB / 0.5437 GB, free: 128 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002253/0.1233, allocations: 268.2 kB / 0.544 GB, free: 15.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.26e-05/0.1234, allocations: 95.12 kB / 0.5441 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.1235, allocations: 73.64 kB / 0.5442 GB, free: 15.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.1237, allocations: 350.8 kB / 0.5445 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.1238, allocations: 87.95 kB / 0.5446 GB, free: 15.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002665/0.1241, allocations: 212.2 kB / 0.5448 GB, free: 14.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004446/0.1245, allocations: 315.1 kB / 0.5451 GB, free: 14.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.1245, allocations: 4 kB / 0.5451 GB, free: 14.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008852/0.1254, allocations: 429.6 kB / 0.5455 GB, free: 14.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1254, allocations: 8 kB / 0.5455 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.1255, allocations: 4 kB / 0.5455 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000428/0.1259, allocations: 101.1 kB / 0.5456 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/0.1261, allocations: 63.91 kB / 0.5457 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002569/0.1287, allocations: 2.01 MB / 0.5476 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002771/0.129, allocations: 19.98 kB / 0.5476 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.161e-05/0.129, allocations: 23.88 kB / 0.5477 GB, free: 11.82 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002579/0.1293, allocations: 193.7 kB / 0.5479 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.625e-05/0.1293, allocations: 43.72 kB / 0.5479 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006299/0.13, allocations: 301.9 kB / 0.5482 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.13, allocations: 7.938 kB / 0.5482 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.13, allocations: 4 kB / 0.5482 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.13, allocations: 3.984 kB / 0.5482 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/0.1312, allocations: 0.7649 MB / 0.5489 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1312, allocations: 0 / 0.5489 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002656/0.1314, allocations: 47.91 kB / 0.549 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002142/0.1316, allocations: 52.8 kB / 0.549 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.207e-05/0.1317, allocations: 8 kB / 0.549 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001452/0.1331, allocations: 1.539 MB / 0.5506 GB, free: 8.641 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.1331, allocations: 4.031 kB / 0.5506 GB, free: 8.637 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000798/0.1339, allocations: 0.4962 MB / 0.551 GB, free: 8.117 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000163/0.1341, allocations: 128.8 kB / 0.5512 GB, free: 7.973 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.354e-05/0.1341, allocations: 8 kB / 0.5512 GB, free: 7.965 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002345/0.1344, allocations: 15.98 kB / 0.5512 GB, free: 7.949 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.495e-05/0.1344, allocations: 19.97 kB / 0.5512 GB, free: 7.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.1345, allocations: 15.94 kB / 0.5512 GB, free: 7.914 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003466/0.1348, allocations: 283.1 kB / 0.5515 GB, free: 7.641 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1348, allocations: 0 / 0.5515 GB, free: 7.641 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006367/0.1354, allocations: 103.9 kB / 0.5516 GB, free: 7.539 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002373/0.1378, allocations: 1.335 MB / 0.5529 GB, free: 6.332 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009388/0.1388, allocations: 403 kB / 0.5533 GB, free: 5.926 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.1388, allocations: 0 / 0.5533 GB, free: 5.926 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000428/0.1392, allocations: 234.5 kB / 0.5535 GB, free: 5.684 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006784/0.1399, allocations: 128.5 kB / 0.5536 GB, free: 5.562 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00596/0.1458, allocations: 4.059 MB / 0.5576 GB, free: 1.293 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005551/0.1464, allocations: 0.8504 MB / 0.5584 GB, free: 428 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002495/0.1466, allocations: 63.36 kB / 0.5585 GB, free: 360 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002336/0.1469, allocations: 159.4 kB / 0.5586 GB, free: 200 kB / 414.1 MB Notification: Performance of SimCode: time 1.152e-06/0.1469, allocations: 0 / 0.5586 GB, free: 200 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04282/0.1897, allocations: 11.07 MB / 0.5694 GB, free: 5.195 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.03/13.22, allocations: 11.03 kB / 0.5695 GB, free: 5.188 MB / 430.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.18623400107026] Failed to read output from testmodel.py, exit status != 0: 13.38107005180791 13.403963711 13.286487649 Calling exit ...