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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 102.1 kB / 16.62 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 193.9 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.137/1.137, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1541/0.1541, allocations: 38.02 MB / 329.4 MB, free: 9.004 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 60.12 kB / 398.4 MB, free: 34.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07838/0.07958, allocations: 58.06 MB / 456.4 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006305/0.08591, allocations: 5.803 MB / 462.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002852/0.08878, allocations: 2.17 MB / 464.4 MB, free: 332 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003498/0.08915, allocations: 27.81 kB / 464.4 MB, free: 304 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004351/0.0896, allocations: 127.2 kB / 464.6 MB, free: 176 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007282/0.09034, allocations: 322.5 kB / 464.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004106/0.09076, allocations: 195 kB / 465.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007338/0.0915, allocations: 0.6927 MB / 465.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004403/0.09195, allocations: 426.5 kB / 466.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003718/0.09233, allocations: 298.8 kB / 466.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003499/0.09269, allocations: 306.7 kB / 466.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.09e-05/0.09276, allocations: 48 kB / 466.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001533/0.09292, allocations: 91.98 kB / 466.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.09306, allocations: 155.5 kB / 467.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002113/0.09328, allocations: 262.7 kB / 467.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005357/0.09382, allocations: 0.6463 MB / 468 MB, free: 12.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.09383, allocations: 0 / 468 MB, free: 12.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.09383, allocations: 0 / 468 MB, free: 12.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.09385, allocations: 0 / 468 MB, free: 12.75 MB / 350.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.001327/0.09518, allocations: 0.8427 MB / 468.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.09522, allocations: 11.89 kB / 468.8 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.611e-05/0.0953, allocations: 78.72 kB / 468.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.92e-05/0.09541, allocations: 56.28 kB / 468.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006123/0.09602, allocations: 466 kB / 469.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.543e-05/0.09606, allocations: 29 kB / 469.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.528e-05/0.09612, allocations: 39.98 kB / 469.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006473/0.09677, allocations: 461.1 kB / 469.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.0968, allocations: 0 / 469.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.59e-05/0.09684, allocations: 16 kB / 469.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.09686, allocations: 12 kB / 469.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004152/0.09728, allocations: 278.3 kB / 470.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001848/0.09913, allocations: 1.87 MB / 472.1 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004263/0.09957, allocations: 252 kB / 472.3 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001231/0.09971, allocations: 86.98 kB / 472.4 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.904e-05/0.09974, allocations: 7.938 kB / 472.4 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002242/0.09997, allocations: 176.5 kB / 472.6 MB, free: 7.812 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.312e-06/0.09998, allocations: 3.938 kB / 472.6 MB, free: 7.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001424/0.1014, allocations: 0.9152 MB / 473.5 MB, free: 6.836 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.701e-05/0.1015, allocations: 132.5 kB / 473.6 MB, free: 6.676 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003728/0.1019, allocations: 397.9 kB / 474 MB, free: 6.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.1019, allocations: 33.7 kB / 474.1 MB, free: 6.242 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.102, allocations: 263.7 kB / 474.3 MB, free: 5.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.491e-05/0.1021, allocations: 86.66 kB / 474.4 MB, free: 5.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.721e-05/0.1022, allocations: 73.67 kB / 474.5 MB, free: 5.816 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.1023, allocations: 354.8 kB / 474.8 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.1025, allocations: 87.91 kB / 474.9 MB, free: 5.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002007/0.1027, allocations: 220.2 kB / 475.1 MB, free: 5.102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003525/0.103, allocations: 319.9 kB / 475.4 MB, free: 4.734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.103, allocations: 0 / 475.4 MB, free: 4.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007147/0.1038, allocations: 421.4 kB / 475.9 MB, free: 4.312 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.1038, allocations: 8 kB / 475.9 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.1038, allocations: 4.531 kB / 475.9 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003667/0.1042, allocations: 100.7 kB / 476 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001979/0.1044, allocations: 63.91 kB / 476 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.196/0.3004, allocations: 2.019 MB / 478 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003617/0.3007, allocations: 16 kB / 478.1 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.812e-05/0.3008, allocations: 23.88 kB / 478.1 MB, free: 1.941 MB / 350.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.000266/0.3011, allocations: 189.7 kB / 478.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.879e-05/0.3012, allocations: 43.44 kB / 478.3 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007657/0.302, allocations: 306 kB / 478.6 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.302, allocations: 0 / 478.6 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.302, allocations: 4 kB / 478.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.302, allocations: 3.984 kB / 478.6 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.3031, allocations: 0.7649 MB / 479.4 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.3032, allocations: 4 kB / 479.4 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002623/0.3034, allocations: 43.92 kB / 479.4 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002239/0.3037, allocations: 52.8 kB / 479.5 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.262e-05/0.3037, allocations: 4 kB / 479.5 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001196/0.3049, allocations: 1.551 MB / 481 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3049, allocations: 4.062 kB / 481 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006761/0.3056, allocations: 0.4991 MB / 481.5 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.3057, allocations: 124.6 kB / 481.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.893e-05/0.3058, allocations: 11.98 kB / 481.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002077/0.306, allocations: 12 kB / 481.7 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.015e-05/0.3061, allocations: 23.97 kB / 481.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.3061, allocations: 11.92 kB / 481.7 MB, free: 14.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002842/0.3064, allocations: 283.1 kB / 482 MB, free: 13.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3064, allocations: 4 kB / 482 MB, free: 13.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004382/0.3068, allocations: 104 kB / 482.1 MB, free: 13.64 MB / 366.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.001596/0.3084, allocations: 1.328 MB / 483.4 MB, free: 12.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000781/0.3092, allocations: 422.3 kB / 483.8 MB, free: 12.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.3092, allocations: 1 kB / 483.8 MB, free: 12.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003506/0.3096, allocations: 246.6 kB / 484.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000626/0.3102, allocations: 129.3 kB / 484.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004976/0.3152, allocations: 4.24 MB / 488.5 MB, free: 7.195 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003677/0.3156, allocations: 0.8543 MB / 489.3 MB, free: 6.316 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002194/0.3158, allocations: 59.36 kB / 489.4 MB, free: 6.258 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001944/0.316, allocations: 159.4 kB / 489.5 MB, free: 6.102 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.316, allocations: 0 / 489.5 MB, free: 6.102 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.436/1.752, allocations: 10.6 MB / 0.4884 GB, free: 11.7 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002572/1.753, allocations: 275.7 kB / 0.4887 GB, free: 11.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.216/3.968, allocations: 0 / 0.4887 GB, free: 11.32 MB / 382.1 MB (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 --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)