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.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007974/0.0007974, allocations: 88.16 kB / 16.31 MB, free: 5.555 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.001316/0.001316, allocations: 181.2 kB / 17.21 MB, free: 5.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.406/1.406, allocations: 205.4 MB / 223.4 MB, free: 13.15 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1821/0.1821, allocations: 38.04 MB / 309.7 MB, free: 6.02 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000549/0.000549, allocations: 19.12 kB / 376.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.336, allocations: 56.33 MB / 432.9 MB, free: 18.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005777/0.3418, allocations: 5.395 MB / 438.3 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003048/0.3449, allocations: 1.774 MB / 440.1 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007626/0.3457, allocations: 35.81 kB / 440.1 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006112/0.3464, allocations: 127.1 kB / 440.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00125/0.3476, allocations: 334 kB / 440.6 MB, free: 11.1 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006414/0.3483, allocations: 159.8 kB / 440.8 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009796/0.3493, allocations: 0.7395 MB / 441.5 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005257/0.3498, allocations: 321.2 kB / 441.8 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004472/0.3503, allocations: 242.9 kB / 442 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004296/0.3507, allocations: 263 kB / 442.3 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.868e-05/0.3508, allocations: 24 kB / 442.3 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.556e-05/0.3509, allocations: 24 kB / 442.3 MB, free: 9.344 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.351, allocations: 131.6 kB / 442.5 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001382/0.3512, allocations: 117.5 kB / 442.6 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003572/0.3515, allocations: 462.7 kB / 443 MB, free: 8.641 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.3515, allocations: 4 kB / 443 MB, free: 8.637 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3516, allocations: 4 kB / 443.1 MB, free: 8.633 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.879e-05/0.3516, allocations: 0 / 443.1 MB, free: 8.633 MB / 318.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.001265/0.3529, allocations: 0.6996 MB / 443.8 MB, free: 7.887 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.581e-05/0.3529, allocations: 15.98 kB / 443.8 MB, free: 7.871 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001372/0.3531, allocations: 82.53 kB / 443.8 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.3532, allocations: 59.3 kB / 443.9 MB, free: 7.723 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006843/0.3539, allocations: 414.9 kB / 444.3 MB, free: 7.273 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.498e-05/0.354, allocations: 66.69 kB / 444.4 MB, free: 7.203 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.544e-05/0.354, allocations: 40 kB / 444.4 MB, free: 7.164 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007534/0.3548, allocations: 0.5008 MB / 444.9 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.579e-05/0.3548, allocations: 11.89 kB / 444.9 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.604e-05/0.3549, allocations: 20 kB / 444.9 MB, free: 6.594 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.3549, allocations: 15.95 kB / 445 MB, free: 6.578 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005826/0.3555, allocations: 339.7 kB / 445.3 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00202/0.3575, allocations: 1.988 MB / 447.3 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003694/0.3579, allocations: 227 kB / 447.5 MB, free: 3.898 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/0.3581, allocations: 102.7 kB / 447.6 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.3581, allocations: 0 / 447.6 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.3582, allocations: 42.5 kB / 447.6 MB, free: 3.738 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.122e-06/0.3582, allocations: 0 / 447.6 MB, free: 3.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.00147/0.3596, allocations: 0.8626 MB / 448.5 MB, free: 2.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.602e-05/0.3597, allocations: 110.7 kB / 448.6 MB, free: 2.688 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002643/0.36, allocations: 329.5 kB / 448.9 MB, free: 2.355 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.36, allocations: 29.7 kB / 449 MB, free: 2.32 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.3601, allocations: 267.7 kB / 449.2 MB, free: 2.055 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.032e-05/0.3602, allocations: 82.83 kB / 449.3 MB, free: 1.973 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.262e-05/0.3602, allocations: 8 kB / 449.3 MB, free: 1.965 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.166e-05/0.3603, allocations: 346.8 kB / 449.7 MB, free: 1.617 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001708/0.3605, allocations: 87.95 kB / 449.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002037/0.3607, allocations: 217.2 kB / 450 MB, free: 1.258 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006704/0.3613, allocations: 316.9 kB / 450.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.3614, allocations: 4 kB / 450.3 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007015/0.3621, allocations: 427.2 kB / 450.7 MB, free: 0.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.3621, allocations: 8 kB / 450.7 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3621, allocations: 4 kB / 450.7 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002702/0.3624, allocations: 81.02 kB / 450.8 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.3626, allocations: 63.91 kB / 450.8 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001768/0.3644, allocations: 1.752 MB / 452.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000208/0.3646, allocations: 20.06 kB / 452.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.352e-05/0.3646, allocations: 16 kB / 452.6 MB, free: 14.41 MB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002299/0.3649, allocations: 185.8 kB / 452.8 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.464e-05/0.365, allocations: 31.62 kB / 452.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.613e-05/0.3651, allocations: 47.25 kB / 452.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.3651, allocations: 0 / 452.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.3651, allocations: 4 kB / 452.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3651, allocations: 0 / 452.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001239/0.3663, allocations: 0.7998 MB / 453.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3663, allocations: 8.031 kB / 453.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002364/0.3666, allocations: 43.97 kB / 453.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.07e-05/0.3667, allocations: 16.86 kB / 453.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-05/0.3667, allocations: 11.98 kB / 453.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009586/0.3677, allocations: 1.284 MB / 455.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3677, allocations: 0 / 455.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000797/0.3685, allocations: 0.5126 MB / 455.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001244/0.3686, allocations: 120.7 kB / 455.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.904e-05/0.3687, allocations: 4 kB / 455.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001937/0.3689, allocations: 23.86 kB / 455.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.686e-05/0.369, allocations: 23.88 kB / 455.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.369, allocations: 7.984 kB / 455.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002569/0.3692, allocations: 227.2 kB / 456 MB, free: 10.81 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3693, allocations: 0 / 456 MB, free: 10.81 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005339/0.3698, allocations: 88 kB / 456 MB, free: 10.73 MB / 334.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00109/0.3709, allocations: 1.046 MB / 457.1 MB, free: 9.641 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007555/0.3717, allocations: 379 kB / 457.5 MB, free: 9.258 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.3717, allocations: 0 / 457.5 MB, free: 9.258 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003579/0.3721, allocations: 219.6 kB / 457.7 MB, free: 9.031 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006332/0.3727, allocations: 93.22 kB / 457.8 MB, free: 8.941 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004017/0.3767, allocations: 2.49 MB / 460.3 MB, free: 6.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005784/0.3773, allocations: 0.8428 MB / 461.1 MB, free: 5.473 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002513/0.3776, allocations: 47.25 kB / 461.1 MB, free: 5.426 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001935/0.3778, allocations: 147.3 kB / 461.3 MB, free: 5.281 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3778, allocations: 4 kB / 461.3 MB, free: 5.277 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02147/0.3993, allocations: 7.747 MB / 469 MB, free: 13.58 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002954/0.3996, allocations: 224.7 kB / 469.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.955/2.355, allocations: 0 / 469.3 MB, free: 13.33 MB / 350.1 MB (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/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --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) Environment - environmentSimulation: