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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001163/0.001163, allocations: 184.3 kB / 13.65 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.734/1.734, allocations: 194.3 MB / 208.4 MB, free: 6.703 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001748/0.001749, allocations: 112.7 kB / 253.5 MB, free: 9.594 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1748/0.1748, allocations: 37.91 MB / 336.4 MB, free: 14.28 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.717e-05/3.739e-05, allocations: 0 / 397.6 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3796/0.3797, allocations: 53.23 MB / 450.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4869/0.8666, allocations: 95 MB / 0.5331 GB, free: 32.01 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003193/0.867, allocations: 92.3 kB / 0.5332 GB, free: 32.01 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03622/0.9033, allocations: 12.97 MB / 0.5458 GB, free: 30.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.9033, allocations: 0 / 0.5458 GB, free: 30.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.577e-05/0.9034, allocations: 15.62 kB / 0.5458 GB, free: 30.43 MB / 378.7 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.001166/0.9045, allocations: 0.6801 MB / 0.5465 GB, free: 29.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/0.9046, allocations: 11.72 kB / 0.5465 GB, free: 29.95 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001065/0.9047, allocations: 83.61 kB / 0.5466 GB, free: 29.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.9048, allocations: 54.5 kB / 0.5466 GB, free: 29.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001321/0.9062, allocations: 0.6669 MB / 0.5473 GB, free: 29.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.777e-05/0.9063, allocations: 67.02 kB / 0.5474 GB, free: 29.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.665e-05/0.9063, allocations: 44.66 kB / 0.5474 GB, free: 29.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006838/0.907, allocations: 493.2 kB / 0.5479 GB, free: 29.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.168e-05/0.9071, allocations: 3.953 kB / 0.5479 GB, free: 29.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.286e-05/0.9071, allocations: 27.09 kB / 0.5479 GB, free: 29.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.9071, allocations: 9.938 kB / 0.5479 GB, free: 29.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005247/0.9077, allocations: 307.7 kB / 0.5482 GB, free: 29.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002156/0.9098, allocations: 1.997 MB / 0.5502 GB, free: 28.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003217/0.9102, allocations: 200.1 kB / 0.5503 GB, free: 28.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001314/0.9103, allocations: 81.89 kB / 0.5504 GB, free: 28.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/0.9103, allocations: 7.25 kB / 0.5504 GB, free: 28.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.9104, allocations: 39.48 kB / 0.5505 GB, free: 28.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=20): time 1.853e-06/0.9104, allocations: 0 / 0.5505 GB, free: 28.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.001589/0.912, allocations: 0.9526 MB / 0.5514 GB, free: 27.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.912, allocations: 118.4 kB / 0.5515 GB, free: 27.28 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002825/0.9123, allocations: 283.1 kB / 0.5518 GB, free: 27.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.9124, allocations: 29.61 kB / 0.5518 GB, free: 27.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.9125, allocations: 266.3 kB / 0.5521 GB, free: 26.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.073e-05/0.9126, allocations: 81 kB / 0.5521 GB, free: 26.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.506e-05/0.9126, allocations: 7.594 kB / 0.5521 GB, free: 26.92 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.9127, allocations: 346.6 kB / 0.5525 GB, free: 26.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.9128, allocations: 69.66 kB / 0.5525 GB, free: 26.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001761/0.913, allocations: 207.8 kB / 0.5527 GB, free: 26.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005784/0.9136, allocations: 287.8 kB / 0.553 GB, free: 26.33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.9136, allocations: 3.938 kB / 0.553 GB, free: 26.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006394/0.9143, allocations: 391 kB / 0.5534 GB, free: 26.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.9143, allocations: 12.53 kB / 0.5534 GB, free: 26.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.9143, allocations: 8.375 kB / 0.5534 GB, free: 26.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003084/0.9146, allocations: 82 kB / 0.5535 GB, free: 26.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002332/0.9149, allocations: 72.72 kB / 0.5536 GB, free: 26.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001638/0.9165, allocations: 1.787 MB / 0.5553 GB, free: 24.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002011/0.9167, allocations: 22.03 kB / 0.5553 GB, free: 24.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.9168, allocations: 15.81 kB / 0.5553 GB, free: 24.84 MB / 378.7 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 () * 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 8} Notification: Performance of prepare postOptimizeDAE: time 9.512e-05/0.9169, allocations: 131 kB / 0.5555 GB, free: 24.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.671e-05/0.917, allocations: 39.09 kB / 0.5555 GB, free: 24.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.838e-05/0.917, allocations: 43.27 kB / 0.5555 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.917, allocations: 3.906 kB / 0.5555 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.917, allocations: 4 kB / 0.5556 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.9171, allocations: 7.094 kB / 0.5556 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000924/0.918, allocations: 0.7596 MB / 0.5563 GB, free: 24.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.918, allocations: 0 / 0.5563 GB, free: 24.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002557/0.9183, allocations: 56.89 kB / 0.5564 GB, free: 24.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.976e-05/0.9183, allocations: 24.14 kB / 0.5564 GB, free: 24.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.9184, allocations: 3.375 kB / 0.5564 GB, free: 24.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000624/0.919, allocations: 1.292 MB / 0.5576 GB, free: 23.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.919, allocations: 0 / 0.5576 GB, free: 23.01 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004442/0.9195, allocations: 499.8 kB / 0.5581 GB, free: 22.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.988e-05/0.9196, allocations: 130.7 kB / 0.5582 GB, free: 22.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.429e-05/0.9196, allocations: 7.422 kB / 0.5582 GB, free: 22.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000191/0.9198, allocations: 7.656 kB / 0.5583 GB, free: 22.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.929e-05/0.9199, allocations: 22.45 kB / 0.5583 GB, free: 22.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.9199, allocations: 3.969 kB / 0.5583 GB, free: 22.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001904/0.9201, allocations: 222.7 kB / 0.5585 GB, free: 22.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9201, allocations: 0 / 0.5585 GB, free: 22.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000463/0.9206, allocations: 99.38 kB / 0.5586 GB, free: 22.52 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (dcm_pm.motor.phi_el,dcm_pm.motor.w_el,dcm_pm.motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.0007522/0.9213, allocations: 1.191 MB / 0.5598 GB, free: 21.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005676/0.9219, allocations: 366.2 kB / 0.5601 GB, free: 21.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.9219, allocations: 0 / 0.5601 GB, free: 21.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002264/0.9222, allocations: 204.1 kB / 0.5603 GB, free: 21.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005303/0.9227, allocations: 95.47 kB / 0.5604 GB, free: 21.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001384/0.9241, allocations: 0.7892 MB / 0.5612 GB, free: 20.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.9244, allocations: 0.8481 MB / 0.562 GB, free: 20.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001829/0.9246, allocations: 59.25 kB / 0.562 GB, free: 20.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/0.9248, allocations: 142.2 kB / 0.5622 GB, free: 20.19 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.9248, allocations: 0 / 0.5622 GB, free: 20.19 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0208/0.9456, allocations: 8.193 MB / 0.5702 GB, free: 19.36 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001513/0.9458, allocations: 190.2 kB / 0.5704 GB, free: 19.12 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.287/3.232, allocations: 4 kB / 0.5704 GB, free: 19.12 MB / 378.7 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)