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.00129/0.00129, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001744/0.001744, allocations: 210.7 kB / 23.74 MB, free: 4.66 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.486/1.486, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.1884/0.1884, allocations: 38.53 MB / 352.5 MB, free: 12.52 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="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: 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.002056/0.002056, allocations: 59.91 kB / 492.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.3095, allocations: 62.47 MB / 0.542 GB, free: 428 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007331/0.3168, allocations: 5.437 MB / 0.5473 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003235/0.3201, allocations: 1.624 MB / 0.5489 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003285/0.3204, allocations: 27.62 kB / 0.5489 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004444/0.3208, allocations: 129.6 kB / 0.549 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007774/0.3216, allocations: 319 kB / 0.5493 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003972/0.322, allocations: 157.6 kB / 0.5495 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009731/0.323, allocations: 0.706 MB / 0.5502 GB, free: 9.945 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005133/0.3235, allocations: 332.3 kB / 0.5505 GB, free: 9.719 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00054/0.324, allocations: 303.2 kB / 0.5508 GB, free: 9.547 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004778/0.3245, allocations: 297.8 kB / 0.5511 GB, free: 9.363 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.713e-05/0.3246, allocations: 49.78 kB / 0.5511 GB, free: 9.359 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.796e-05/0.3247, allocations: 47.84 kB / 0.5512 GB, free: 9.359 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001746/0.3248, allocations: 155.7 kB / 0.5513 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000293/0.3251, allocations: 271.9 kB / 0.5516 GB, free: 9.066 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00077/0.3259, allocations: 0.5929 MB / 0.5522 GB, free: 8.645 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3259, allocations: 0 / 0.5522 GB, free: 8.645 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.887e-06/0.3259, allocations: 3.984 kB / 0.5522 GB, free: 8.641 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.535e-05/0.3259, allocations: 1.125 kB / 0.5522 GB, free: 8.641 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.001556/0.3275, allocations: 0.7197 MB / 0.5529 GB, free: 8.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.3275, allocations: 20.95 kB / 0.5529 GB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001034/0.3276, allocations: 77.53 kB / 0.553 GB, free: 7.992 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.3277, allocations: 59.09 kB / 0.553 GB, free: 7.961 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008232/0.3286, allocations: 395.6 kB / 0.5534 GB, free: 7.648 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001387/0.3287, allocations: 87.56 kB / 0.5535 GB, free: 7.566 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.523e-05/0.3288, allocations: 44.69 kB / 0.5535 GB, free: 7.551 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008518/0.3296, allocations: 0.5058 MB / 0.554 GB, free: 7.191 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.444e-05/0.3297, allocations: 5.031 kB / 0.554 GB, free: 7.188 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.458e-05/0.3297, allocations: 20.78 kB / 0.554 GB, free: 7.172 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.802e-05/0.3297, allocations: 10.59 kB / 0.554 GB, free: 7.172 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006842/0.3304, allocations: 342.5 kB / 0.5544 GB, free: 7.004 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002665/0.3331, allocations: 1.889 MB / 0.5562 GB, free: 5.332 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004434/0.3335, allocations: 212.2 kB / 0.5564 GB, free: 5.184 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001964/0.3337, allocations: 98.45 kB / 0.5565 GB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.3337, allocations: 2.562 kB / 0.5565 GB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.3338, allocations: 39.78 kB / 0.5566 GB, free: 5.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.734e-06/0.3338, allocations: 1.25 kB / 0.5566 GB, free: 5.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001687/0.3355, allocations: 0.7803 MB / 0.5573 GB, free: 4.477 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.335e-05/0.3356, allocations: 106.8 kB / 0.5574 GB, free: 4.348 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003667/0.3359, allocations: 329.6 kB / 0.5577 GB, free: 4.016 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.612e-05/0.3359, allocations: 33.7 kB / 0.5578 GB, free: 3.977 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/0.3362, allocations: 288.2 kB / 0.558 GB, free: 3.688 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.392e-05/0.3362, allocations: 75.39 kB / 0.5581 GB, free: 3.613 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.3363, allocations: 69.64 kB / 0.5582 GB, free: 3.539 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.3365, allocations: 338.8 kB / 0.5585 GB, free: 3.199 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002227/0.3367, allocations: 91.72 kB / 0.5586 GB, free: 3.109 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003048/0.337, allocations: 213.1 kB / 0.5588 GB, free: 2.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/0.3382, allocations: 494.8 kB / 0.5593 GB, free: 2.297 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.3382, allocations: 4 kB / 0.5593 GB, free: 2.293 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000913/0.3391, allocations: 413.9 kB / 0.5597 GB, free: 1.879 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.3392, allocations: 11.98 kB / 0.5597 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.3392, allocations: 4 kB / 0.5597 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003329/0.3395, allocations: 77.05 kB / 0.5598 GB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002613/0.3398, allocations: 67.84 kB / 0.5598 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002154/0.3419, allocations: 1.816 MB / 0.5616 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002342/0.3422, allocations: 23.98 kB / 0.5616 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.653e-05/0.3422, allocations: 12 kB / 0.5616 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.0002731/0.3425, allocations: 201.7 kB / 0.5618 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.711e-05/0.3425, allocations: 43.7 kB / 0.5619 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.346e-05/0.3426, allocations: 39.25 kB / 0.5619 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.3426, allocations: 0 / 0.5619 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.3426, allocations: 7.984 kB / 0.5619 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3426, allocations: 0 / 0.5619 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001327/0.344, allocations: 0.7474 MB / 0.5626 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.344, allocations: 0 / 0.5626 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002567/0.3442, allocations: 43.91 kB / 0.5627 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.616e-05/0.3443, allocations: 24.84 kB / 0.5627 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.3443, allocations: 4 kB / 0.5627 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001071/0.3454, allocations: 1.283 MB / 0.564 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3454, allocations: 4.156 kB / 0.564 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008039/0.3462, allocations: 0.5003 MB / 0.5644 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.3463, allocations: 51.78 kB / 0.5645 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.706e-05/0.3464, allocations: 8 kB / 0.5645 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002018/0.3466, allocations: 4 kB / 0.5645 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.436e-05/0.3466, allocations: 23.95 kB / 0.5645 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.3466, allocations: 4 kB / 0.5645 GB, free: 12.56 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002532/0.3469, allocations: 231.2 kB / 0.5648 GB, free: 12.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3469, allocations: 0 / 0.5648 GB, free: 12.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005239/0.3474, allocations: 91.92 kB / 0.5648 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.001133/0.3486, allocations: 1.046 MB / 0.5659 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007695/0.3493, allocations: 355.3 kB / 0.5662 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.3493, allocations: 8.125 kB / 0.5662 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003787/0.3497, allocations: 210.6 kB / 0.5664 GB, free: 10.58 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007149/0.3504, allocations: 122.7 kB / 0.5665 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005702/0.3561, allocations: 3.693 MB / 0.5701 GB, free: 6.551 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000527/0.3567, allocations: 0.8425 MB / 0.571 GB, free: 5.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002023/0.3569, allocations: 55.25 kB / 0.571 GB, free: 5.629 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001995/0.3571, allocations: 139.4 kB / 0.5711 GB, free: 5.492 MB / 414.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3571, allocations: 0 / 0.5711 GB, free: 5.492 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06197/0.419, allocations: 8.839 MB / 0.5798 GB, free: 12.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.43/13.85, allocations: 0.5 kB / 0.5798 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: 16.641305762110278] Failed to read output from testmodel.py, exit status != 0: 13.973066041944548 13.999528757 13.668899644 Calling exit ...