Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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.001295/0.001295, allocations: 119.9 kB / 17.79 MB, free: 5.137 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.001327/0.001327, allocations: 185.2 kB / 20.73 MB, free: 2.207 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.412/1.412, allocations: 225.6 MB / 249.1 MB, free: 3.578 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.1812/0.1812, allocations: 38.49 MB / 342.5 MB, free: 7.992 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_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 70.97 kB / 478.6 MB, free: 33.78 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1075, allocations: 61.25 MB / 0.5272 GB, free: 1.344 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.00817/0.1156, allocations: 5.222 MB / 0.5323 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00357/0.1192, allocations: 1.99 MB / 0.5342 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003368/0.1195, allocations: 11.94 kB / 0.5343 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005919/0.1201, allocations: 158.9 kB / 0.5344 GB, free: 9.934 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009902/0.1211, allocations: 357.9 kB / 0.5347 GB, free: 9.582 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005749/0.1217, allocations: 231.4 kB / 0.535 GB, free: 9.355 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001091/0.1228, allocations: 0.6967 MB / 0.5357 GB, free: 8.656 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005193/0.1233, allocations: 350.6 kB / 0.536 GB, free: 8.309 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005114/0.1238, allocations: 306.8 kB / 0.5363 GB, free: 8.008 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004548/0.1243, allocations: 294.8 kB / 0.5366 GB, free: 7.719 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.531e-05/0.1243, allocations: 48 kB / 0.5366 GB, free: 7.672 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002081/0.1245, allocations: 91.97 kB / 0.5367 GB, free: 7.582 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001842/0.1247, allocations: 151.5 kB / 0.5368 GB, free: 7.434 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002955/0.125, allocations: 270.6 kB / 0.5371 GB, free: 7.168 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009409/0.126, allocations: 0.642 MB / 0.5377 GB, free: 6.523 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.126, allocations: 4 kB / 0.5377 GB, free: 6.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.126, allocations: 0 / 0.5377 GB, free: 6.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.126, allocations: 4 kB / 0.5377 GB, free: 6.516 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.001839/0.1278, allocations: 0.8616 MB / 0.5386 GB, free: 5.602 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.1279, allocations: 15.89 kB / 0.5386 GB, free: 5.586 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.128, allocations: 74.72 kB / 0.5387 GB, free: 5.504 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001337/0.1281, allocations: 64.59 kB / 0.5387 GB, free: 5.441 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009254/0.129, allocations: 486.4 kB / 0.5392 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.53e-05/0.1291, allocations: 29 kB / 0.5392 GB, free: 4.898 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.486e-05/0.1292, allocations: 39.98 kB / 0.5392 GB, free: 4.859 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007642/0.1299, allocations: 457.1 kB / 0.5397 GB, free: 4.375 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.13, allocations: 3.953 kB / 0.5397 GB, free: 4.371 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.315e-05/0.13, allocations: 19.94 kB / 0.5397 GB, free: 4.352 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.13, allocations: 12 kB / 0.5397 GB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000485/0.1305, allocations: 274.3 kB / 0.54 GB, free: 4.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002312/0.1328, allocations: 1.859 MB / 0.5418 GB, free: 2.102 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005228/0.1333, allocations: 239.7 kB / 0.542 GB, free: 1.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.1335, allocations: 82.92 kB / 0.5421 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.644e-05/0.1335, allocations: 7.938 kB / 0.5421 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002787/0.1338, allocations: 176.8 kB / 0.5423 GB, free: 1.551 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.1338, allocations: 0 / 0.5423 GB, free: 1.551 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001862/0.1357, allocations: 0.9296 MB / 0.5432 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.1358, allocations: 132.5 kB / 0.5433 GB, free: 416 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004961/0.1363, allocations: 401.9 kB / 0.5437 GB, free: 4 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.545e-05/0.1363, allocations: 29.7 kB / 0.5437 GB, free: 15.97 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002216/0.1365, allocations: 272.3 kB / 0.544 GB, free: 15.7 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.202e-05/0.1366, allocations: 95.22 kB / 0.5441 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.1368, allocations: 69.64 kB / 0.5441 GB, free: 15.53 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.1369, allocations: 350.8 kB / 0.5445 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.1371, allocations: 87.95 kB / 0.5446 GB, free: 15.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003362/0.1374, allocations: 220.1 kB / 0.5448 GB, free: 14.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005001/0.1379, allocations: 315.2 kB / 0.5451 GB, free: 14.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1379, allocations: 4 kB / 0.5451 GB, free: 14.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000856/0.1388, allocations: 433.6 kB / 0.5455 GB, free: 14.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.1388, allocations: 8 kB / 0.5455 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.1388, allocations: 4 kB / 0.5455 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004428/0.1393, allocations: 97.19 kB / 0.5456 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002353/0.1395, allocations: 67.91 kB / 0.5457 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002533/0.142, allocations: 2.01 MB / 0.5476 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002708/0.1423, allocations: 15.98 kB / 0.5476 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.308e-05/0.1423, allocations: 27.92 kB / 0.5477 GB, free: 11.65 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.0002815/0.1426, allocations: 197.7 kB / 0.5478 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.335e-05/0.1427, allocations: 43.72 kB / 0.5479 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006236/0.1433, allocations: 298 kB / 0.5482 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.1433, allocations: 4 kB / 0.5482 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1433, allocations: 4 kB / 0.5482 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.1433, allocations: 3.984 kB / 0.5482 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.1445, allocations: 0.7571 MB / 0.5489 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.1445, allocations: 7.984 kB / 0.5489 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002327/0.1447, allocations: 43.92 kB / 0.549 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002042/0.1449, allocations: 48.81 kB / 0.549 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.388e-05/0.145, allocations: 11.98 kB / 0.549 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001592/0.1466, allocations: 1.543 MB / 0.5505 GB, free: 8.477 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.1466, allocations: 4.031 kB / 0.5505 GB, free: 8.473 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008119/0.1474, allocations: 0.4884 MB / 0.551 GB, free: 7.961 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00017/0.1475, allocations: 132.8 kB / 0.5511 GB, free: 7.812 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.413e-05/0.1476, allocations: 8 kB / 0.5512 GB, free: 7.805 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002306/0.1478, allocations: 19.92 kB / 0.5512 GB, free: 7.785 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.429e-05/0.1479, allocations: 19.97 kB / 0.5512 GB, free: 7.766 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.762e-05/0.1479, allocations: 19.94 kB / 0.5512 GB, free: 7.746 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003559/0.1483, allocations: 279.1 kB / 0.5515 GB, free: 7.477 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1483, allocations: 0 / 0.5515 GB, free: 7.477 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005607/0.1489, allocations: 107.9 kB / 0.5516 GB, free: 7.371 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.002457/0.1513, allocations: 1.324 MB / 0.5529 GB, free: 6.172 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009827/0.1523, allocations: 415 kB / 0.5533 GB, free: 5.754 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1523, allocations: 0 / 0.5533 GB, free: 5.754 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004202/0.1527, allocations: 234.5 kB / 0.5535 GB, free: 5.512 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007035/0.1534, allocations: 121 kB / 0.5536 GB, free: 5.398 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006073/0.1595, allocations: 4.07 MB / 0.5576 GB, free: 1.121 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005429/0.16, allocations: 0.8504 MB / 0.5584 GB, free: 252 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002659/0.1603, allocations: 67.34 kB / 0.5585 GB, free: 180 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002271/0.1605, allocations: 155.4 kB / 0.5586 GB, free: 24 kB / 414.1 MB Notification: Performance of SimCode: time 1.342e-06/0.1605, allocations: 0 / 0.5586 GB, free: 24 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04471/0.2052, allocations: 11.04 MB / 0.5694 GB, free: 5.047 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/13.48, allocations: 6.812 kB / 0.5694 GB, free: 5.043 MB / 430.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.387521574273705] Failed to read output from testmodel.py, exit status != 0: 13.634935976937413 13.651433375 13.522044978 Calling exit ...