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.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.001344/0.001344, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.001558/0.001558, allocations: 216 kB / 23.73 MB, free: 4.156 MB / 14.72 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 1.551/1.551, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1927/0.1927, allocations: 38.56 MB / 352.5 MB, free: 12.29 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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_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: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003274/0.003274, allocations: 74.22 kB / 492.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3566, allocations: 62.46 MB / 0.5419 GB, free: 252 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.00872/0.3653, allocations: 5.051 MB / 0.5469 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004179/0.3695, allocations: 1.99 MB / 0.5488 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003646/0.3699, allocations: 22.03 kB / 0.5488 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005789/0.3705, allocations: 151.1 kB / 0.549 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001238/0.3717, allocations: 400.5 kB / 0.5494 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006477/0.3724, allocations: 214 kB / 0.5496 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001059/0.3734, allocations: 0.7174 MB / 0.5503 GB, free: 9.863 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004701/0.3739, allocations: 330.6 kB / 0.5506 GB, free: 9.637 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005428/0.3744, allocations: 312.9 kB / 0.5509 GB, free: 9.457 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004673/0.3749, allocations: 273.9 kB / 0.5511 GB, free: 9.293 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.923e-05/0.375, allocations: 48.12 kB / 0.5512 GB, free: 9.293 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003295/0.3753, allocations: 135.8 kB / 0.5513 GB, free: 9.254 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001816/0.3755, allocations: 164 kB / 0.5515 GB, free: 9.129 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002584/0.3757, allocations: 218.7 kB / 0.5517 GB, free: 8.996 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009098/0.3767, allocations: 0.7053 MB / 0.5524 GB, free: 8.504 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3767, allocations: 0.9375 kB / 0.5524 GB, free: 8.504 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3767, allocations: 0 / 0.5524 GB, free: 8.504 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.3767, allocations: 0 / 0.5524 GB, free: 8.504 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.00166/0.3783, allocations: 0.8139 MB / 0.5532 GB, free: 7.852 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.3784, allocations: 18.19 kB / 0.5532 GB, free: 7.844 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001072/0.3785, allocations: 71.53 kB / 0.5532 GB, free: 7.777 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.3786, allocations: 59.73 kB / 0.5533 GB, free: 7.746 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008898/0.3795, allocations: 424.1 kB / 0.5537 GB, free: 7.406 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.772e-05/0.3795, allocations: 28.25 kB / 0.5537 GB, free: 7.395 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.547e-05/0.3796, allocations: 39.98 kB / 0.5538 GB, free: 7.379 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007752/0.3804, allocations: 491.6 kB / 0.5542 GB, free: 7.016 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.872e-05/0.3804, allocations: 1.156 kB / 0.5542 GB, free: 7.016 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.398e-05/0.3805, allocations: 16.47 kB / 0.5543 GB, free: 7.004 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.3805, allocations: 12.39 kB / 0.5543 GB, free: 7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005127/0.381, allocations: 274.8 kB / 0.5545 GB, free: 6.863 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002412/0.3834, allocations: 1.71 MB / 0.5562 GB, free: 5.355 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005413/0.3839, allocations: 237.6 kB / 0.5564 GB, free: 5.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.3841, allocations: 78.98 kB / 0.5565 GB, free: 5.074 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.006e-05/0.3841, allocations: 7.938 kB / 0.5565 GB, free: 5.066 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003163/0.3844, allocations: 172.7 kB / 0.5567 GB, free: 4.879 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.034e-06/0.3844, allocations: 0 / 0.5567 GB, free: 4.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001888/0.3863, allocations: 0.8591 MB / 0.5575 GB, free: 3.984 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.376e-05/0.3864, allocations: 132.5 kB / 0.5576 GB, free: 3.824 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005634/0.387, allocations: 425.8 kB / 0.558 GB, free: 3.398 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.025e-05/0.387, allocations: 29.7 kB / 0.5581 GB, free: 3.363 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002299/0.3873, allocations: 272.3 kB / 0.5583 GB, free: 3.094 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.3874, allocations: 99.17 kB / 0.5584 GB, free: 2.996 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.3875, allocations: 69.64 kB / 0.5585 GB, free: 2.922 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002797/0.3878, allocations: 354.8 kB / 0.5588 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001702/0.3879, allocations: 79.97 kB / 0.5589 GB, free: 2.488 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003012/0.3882, allocations: 249.9 kB / 0.5592 GB, free: 2.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004661/0.3887, allocations: 319.1 kB / 0.5595 GB, free: 1.812 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.3887, allocations: 4 kB / 0.5595 GB, free: 1.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009477/0.3897, allocations: 421.7 kB / 0.5599 GB, free: 1.387 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.3897, allocations: 8 kB / 0.5599 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.3897, allocations: 4 kB / 0.5599 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004411/0.3901, allocations: 97.14 kB / 0.56 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002406/0.3904, allocations: 67.91 kB / 0.56 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002764/0.3931, allocations: 1.903 MB / 0.5619 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002858/0.3934, allocations: 15.98 kB / 0.5619 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.367e-05/0.3934, allocations: 27.94 kB / 0.5619 GB, free: 15.15 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.000261/0.3937, allocations: 197.8 kB / 0.5621 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.233e-05/0.3938, allocations: 43.72 kB / 0.5622 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006545/0.3944, allocations: 298.1 kB / 0.5624 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.3944, allocations: 4 kB / 0.5624 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3944, allocations: 0 / 0.5624 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3944, allocations: 3.938 kB / 0.5625 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001178/0.3956, allocations: 0.7098 MB / 0.5631 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.3956, allocations: 4 kB / 0.5631 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002429/0.3959, allocations: 47.91 kB / 0.5632 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002083/0.3961, allocations: 48.81 kB / 0.5632 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.878e-05/0.3961, allocations: 11.98 kB / 0.5633 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001485/0.3976, allocations: 1.432 MB / 0.5647 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3976, allocations: 0 / 0.5647 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008694/0.3985, allocations: 0.5036 MB / 0.5651 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001517/0.3986, allocations: 55.73 kB / 0.5652 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.205e-05/0.3987, allocations: 4 kB / 0.5652 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.3989, allocations: 15.98 kB / 0.5652 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.248e-05/0.399, allocations: 23.95 kB / 0.5652 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.002e-05/0.399, allocations: 11.94 kB / 0.5652 GB, free: 11.53 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003826/0.3994, allocations: 291.1 kB / 0.5655 GB, free: 11.24 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3994, allocations: 0 / 0.5655 GB, free: 11.24 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006457/0.4, allocations: 123.9 kB / 0.5656 GB, free: 11.12 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.002959/0.403, allocations: 1.418 MB / 0.567 GB, free: 9.863 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009353/0.4039, allocations: 391.2 kB / 0.5674 GB, free: 9.469 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4039, allocations: 0 / 0.5674 GB, free: 9.469 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004194/0.4043, allocations: 246.6 kB / 0.5676 GB, free: 9.215 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007316/0.4051, allocations: 132.8 kB / 0.5678 GB, free: 9.09 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00678/0.4119, allocations: 4.088 MB / 0.5718 GB, free: 4.789 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003539/0.4122, allocations: 255.9 kB / 0.572 GB, free: 4.516 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003357/0.4125, allocations: 71.3 kB / 0.5721 GB, free: 4.441 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002767/0.4128, allocations: 163.4 kB / 0.5722 GB, free: 4.281 MB / 414.1 MB Notification: Performance of SimCode: time 2.254e-06/0.4128, allocations: 0 / 0.5722 GB, free: 4.281 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05294/0.4658, allocations: 12.48 MB / 0.5844 GB, free: 7.957 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.61/14.08, allocations: 4.062 kB / 0.5844 GB, free: 7.953 MB / 430.1 MB " [Timeout remaining time 646] (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: 17.203039921820164] Failed to read output from testmodel.py, exit status != 0: 14.260031312704086 14.281479079 13.900329251 Calling exit ...