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.001402/0.001402, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001683/0.001683, allocations: 206.1 kB / 24.52 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.546/1.546, allocations: 230.6 MB / 258.3 MB, free: 8.02 MB / 206.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.193/0.193, allocations: 38.53 MB / 353.2 MB, free: 12.54 MB / 286.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.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="cs",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.00203/0.00203, allocations: 70.7 kB / 493.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.3592, allocations: 62.46 MB / 0.5428 GB, free: 436 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007914/0.3671, allocations: 5.437 MB / 0.5481 GB, free: 12.19 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003093/0.3702, allocations: 1.624 MB / 0.5497 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003665/0.3706, allocations: 28.75 kB / 0.5497 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004361/0.371, allocations: 124.6 kB / 0.5498 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008391/0.3718, allocations: 323.1 kB / 0.5501 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004095/0.3723, allocations: 154.3 kB / 0.5503 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009802/0.3732, allocations: 0.7023 MB / 0.5509 GB, free: 9.961 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004971/0.3737, allocations: 334.5 kB / 0.5513 GB, free: 9.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000474/0.3742, allocations: 304.4 kB / 0.5516 GB, free: 9.559 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004642/0.3747, allocations: 302.5 kB / 0.5518 GB, free: 9.371 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.082e-05/0.3747, allocations: 49.97 kB / 0.5519 GB, free: 9.367 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.399e-05/0.3748, allocations: 46.03 kB / 0.5519 GB, free: 9.367 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001716/0.375, allocations: 153.2 kB / 0.5521 GB, free: 9.258 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00029/0.3753, allocations: 264 kB / 0.5523 GB, free: 9.086 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008115/0.3761, allocations: 0.5997 MB / 0.5529 GB, free: 8.656 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.3761, allocations: 1.125 kB / 0.5529 GB, free: 8.656 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3761, allocations: 0 / 0.5529 GB, free: 8.656 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.3761, allocations: 0 / 0.5529 GB, free: 8.656 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.001632/0.3778, allocations: 0.7233 MB / 0.5536 GB, free: 8.082 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/0.3778, allocations: 14.45 kB / 0.5536 GB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.58e-05/0.3778, allocations: 10.94 kB / 0.5536 GB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001104/0.3779, allocations: 81.59 kB / 0.5537 GB, free: 8.004 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.3781, allocations: 62.72 kB / 0.5538 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008209/0.3789, allocations: 403.9 kB / 0.5542 GB, free: 7.645 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.379, allocations: 83.97 kB / 0.5543 GB, free: 7.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.358e-05/0.3791, allocations: 43.5 kB / 0.5543 GB, free: 7.555 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009118/0.38, allocations: 0.5105 MB / 0.5548 GB, free: 7.191 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/0.38, allocations: 1.125 kB / 0.5548 GB, free: 7.191 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.926e-05/0.3801, allocations: 20.72 kB / 0.5548 GB, free: 7.176 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.724e-05/0.3801, allocations: 10.75 kB / 0.5548 GB, free: 7.176 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007249/0.3808, allocations: 342 kB / 0.5551 GB, free: 7.008 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002625/0.3834, allocations: 1.894 MB / 0.557 GB, free: 5.332 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005364/0.384, allocations: 215.5 kB / 0.5572 GB, free: 5.184 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002249/0.3842, allocations: 89.91 kB / 0.5573 GB, free: 5.125 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.3842, allocations: 6.656 kB / 0.5573 GB, free: 5.121 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.3843, allocations: 37 kB / 0.5573 GB, free: 5.078 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 2.665e-06/0.3843, allocations: 0 / 0.5573 GB, free: 5.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.002042/0.3863, allocations: 0.7857 MB / 0.5581 GB, free: 4.492 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.151e-05/0.3864, allocations: 110.8 kB / 0.5582 GB, free: 4.359 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003992/0.3868, allocations: 329.7 kB / 0.5585 GB, free: 4.027 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.79e-05/0.3868, allocations: 29.7 kB / 0.5585 GB, free: 3.992 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002151/0.387, allocations: 280.2 kB / 0.5588 GB, free: 3.711 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.836e-05/0.3871, allocations: 79.38 kB / 0.5589 GB, free: 3.633 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.3872, allocations: 65.66 kB / 0.559 GB, free: 3.562 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3874, allocations: 350.9 kB / 0.5593 GB, free: 3.211 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002098/0.3876, allocations: 83.73 kB / 0.5594 GB, free: 3.129 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003293/0.3879, allocations: 213.1 kB / 0.5596 GB, free: 2.859 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001251/0.3892, allocations: 494.8 kB / 0.56 GB, free: 2.316 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.3892, allocations: 11.92 kB / 0.5601 GB, free: 2.305 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000869/0.3901, allocations: 406.1 kB / 0.5604 GB, free: 1.898 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.3901, allocations: 8 kB / 0.5604 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.3901, allocations: 4 kB / 0.5605 GB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003317/0.3904, allocations: 84.72 kB / 0.5605 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.3907, allocations: 63.91 kB / 0.5606 GB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002222/0.3929, allocations: 1.828 MB / 0.5624 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002646/0.3932, allocations: 16 kB / 0.5624 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.304e-05/0.3932, allocations: 24 kB / 0.5624 GB, free: 15.76 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.0002861/0.3935, allocations: 193.1 kB / 0.5626 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.454e-05/0.3936, allocations: 43.69 kB / 0.5626 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.717e-05/0.3936, allocations: 35.31 kB / 0.5627 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.3936, allocations: 8 kB / 0.5627 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3936, allocations: 0 / 0.5627 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.3937, allocations: 4 kB / 0.5627 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/0.395, allocations: 0.7473 MB / 0.5634 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.395, allocations: 3.938 kB / 0.5634 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.3952, allocations: 48.02 kB / 0.5635 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.511e-05/0.3953, allocations: 16.84 kB / 0.5635 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.3953, allocations: 8 kB / 0.5635 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001159/0.3965, allocations: 1.283 MB / 0.5647 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3965, allocations: 0 / 0.5647 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008107/0.3973, allocations: 0.5009 MB / 0.5652 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.3974, allocations: 43.8 kB / 0.5653 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.305e-05/0.3975, allocations: 8 kB / 0.5653 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/0.3977, allocations: 11.98 kB / 0.5653 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.161e-05/0.3977, allocations: 19.97 kB / 0.5653 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.3978, allocations: 8 kB / 0.5653 GB, free: 12.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002768/0.398, allocations: 231.1 kB / 0.5655 GB, free: 12.35 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.398, allocations: 3.938 kB / 0.5655 GB, free: 12.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006027/0.3986, allocations: 92 kB / 0.5656 GB, free: 12.25 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.001285/0.3999, allocations: 1.034 MB / 0.5666 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000885/0.4008, allocations: 370.8 kB / 0.567 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4008, allocations: 0 / 0.567 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003741/0.4012, allocations: 211.8 kB / 0.5672 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000724/0.4019, allocations: 106.3 kB / 0.5673 GB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005764/0.4077, allocations: 3.705 MB / 0.5709 GB, free: 6.562 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005986/0.4083, allocations: 0.8425 MB / 0.5717 GB, free: 5.691 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002208/0.4085, allocations: 51.25 kB / 0.5718 GB, free: 5.645 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002068/0.4087, allocations: 139.4 kB / 0.5719 GB, free: 5.508 MB / 414.1 MB Notification: Performance of SimCode: time 1.713e-06/0.4087, allocations: 0 / 0.5719 GB, free: 5.508 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03581/0.4445, allocations: 8.866 MB / 0.5806 GB, free: 12.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.69/14.13, allocations: 5.906 kB / 0.5806 GB, free: 12.82 MB / 430.1 MB " [Timeout remaining time 646] (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: 17.114531846018508] Failed to read output from testmodel.py, exit status != 0: 14.313775949995033 14.329685263 13.950287278 Calling exit ...