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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001152/0.001152, allocations: 190.8 kB / 8.142 MB, free: 2.121 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.073/1.073, allocations: 194.2 MB / 202.8 MB, free: 8.664 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.001676/0.001676, allocations: 123.4 kB / 247.7 MB, free: 6.387 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1634/0.1634, allocations: 37.92 MB / 330.5 MB, free: 6.91 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1882/0.3516, allocations: 59.34 MB / 389.9 MB, free: 78.02 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08522/0.4369, allocations: 53.23 MB / 443.1 MB, free: 24.88 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2557/0.6926, allocations: 94.31 MB / 0.5248 GB, free: 9.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002262/0.6929, allocations: 87.17 kB / 0.5249 GB, free: 9.258 MB / 346.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.0322/0.7251, allocations: 13.23 MB / 0.5378 GB, free: 1.531 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.7251, allocations: 8 kB / 0.5378 GB, free: 1.523 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.7253, allocations: 55.34 kB / 0.5379 GB, free: 1.469 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.7265, allocations: 0.6692 MB / 0.5386 GB, free: 0.8945 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.538e-05/0.7266, allocations: 49.83 kB / 0.5386 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.699e-05/0.7267, allocations: 24 kB / 0.5386 GB, free: 0.8203 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000446/0.7271, allocations: 284.7 kB / 0.5389 GB, free: 0.6367 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005239/0.7277, allocations: 439.8 kB / 0.5393 GB, free: 276 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.3e-05/0.7277, allocations: 11.53 kB / 0.5393 GB, free: 268 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.627e-05/0.7277, allocations: 0 / 0.5393 GB, free: 268 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.7278, allocations: 12 kB / 0.5393 GB, free: 256 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002182/0.73, allocations: 1.905 MB / 0.5412 GB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002207/0.7302, allocations: 152.7 kB / 0.5413 GB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.7303, allocations: 80.62 kB / 0.5414 GB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.478e-05/0.7304, allocations: 7.906 kB / 0.5414 GB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.7304, allocations: 45.94 kB / 0.5415 GB, free: 14.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.783e-06/0.7304, allocations: 0 / 0.5415 GB, free: 14.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.001391/0.7318, allocations: 0.8857 MB / 0.5423 GB, free: 13.39 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.804e-05/0.7319, allocations: 107 kB / 0.5424 GB, free: 13.26 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002646/0.7321, allocations: 254 kB / 0.5427 GB, free: 13.04 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.7322, allocations: 25.7 kB / 0.5427 GB, free: 13.01 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.7323, allocations: 247.9 kB / 0.5429 GB, free: 12.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.428e-05/0.7324, allocations: 77.41 kB / 0.543 GB, free: 12.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.156e-05/0.7324, allocations: 0 / 0.543 GB, free: 12.72 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.7325, allocations: 340.5 kB / 0.5433 GB, free: 12.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.7326, allocations: 70.8 kB / 0.5434 GB, free: 12.35 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.7328, allocations: 195 kB / 0.5436 GB, free: 12.13 MB / 362.7 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.dcm_pm.rotor.w = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.000712/0.7336, allocations: 285.8 kB / 0.5439 GB, free: 11.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.7336, allocations: 0 / 0.5439 GB, free: 11.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006833/0.7343, allocations: 347.4 kB / 0.5442 GB, free: 11.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.7343, allocations: 4 kB / 0.5442 GB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.7343, allocations: 8 kB / 0.5442 GB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003372/0.7347, allocations: 79.48 kB / 0.5443 GB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002702/0.7349, allocations: 68.16 kB / 0.5443 GB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001858/0.7368, allocations: 1.702 MB / 0.546 GB, free: 9.801 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002238/0.737, allocations: 12.06 kB / 0.546 GB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.523e-05/0.7371, allocations: 12 kB / 0.546 GB, free: 9.777 MB / 362.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: $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 0.0001092/0.7372, allocations: 124.2 kB / 0.5462 GB, free: 9.652 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.778e-05/0.7373, allocations: 31.72 kB / 0.5462 GB, free: 9.621 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.22e-05/0.7374, allocations: 37.05 kB / 0.5462 GB, free: 9.602 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.7374, allocations: 3.938 kB / 0.5462 GB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.7374, allocations: 4 kB / 0.5462 GB, free: 9.594 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.7374, allocations: 4 kB / 0.5462 GB, free: 9.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009093/0.7383, allocations: 0.6909 MB / 0.5469 GB, free: 8.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.7383, allocations: 0 / 0.5469 GB, free: 8.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002895/0.7386, allocations: 63.58 kB / 0.547 GB, free: 8.922 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.978e-05/0.7387, allocations: 23.72 kB / 0.547 GB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.7387, allocations: 0 / 0.547 GB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008231/0.7396, allocations: 1.23 MB / 0.5482 GB, free: 7.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.7396, allocations: 0 / 0.5482 GB, free: 7.59 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000482/0.7401, allocations: 488.1 kB / 0.5487 GB, free: 7.152 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006903/0.7408, allocations: 0.9379 MB / 0.5496 GB, free: 6.289 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.7409, allocations: 120.3 kB / 0.5497 GB, free: 6.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.546e-05/0.7409, allocations: 3.984 kB / 0.5497 GB, free: 6.156 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002134/0.7412, allocations: 11.94 kB / 0.5497 GB, free: 6.145 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.241e-05/0.7412, allocations: 15.84 kB / 0.5497 GB, free: 6.133 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.7412, allocations: 12 kB / 0.5497 GB, free: 6.121 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001693/0.7414, allocations: 185.5 kB / 0.5499 GB, free: 5.977 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001147/0.7426, allocations: 83.88 kB / 0.55 GB, free: 5.898 MB / 362.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.0001961/0.7428, allocations: 118.6 kB / 0.5501 GB, free: 5.777 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005706/0.7434, allocations: 316.6 kB / 0.5504 GB, free: 5.516 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.7434, allocations: 0 / 0.5504 GB, free: 5.516 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002536/0.7436, allocations: 197.1 kB / 0.5506 GB, free: 5.336 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000474/0.7441, allocations: 75.08 kB / 0.5507 GB, free: 5.285 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.7454, allocations: 0.6565 MB / 0.5513 GB, free: 4.645 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005312/0.7459, allocations: 0.8883 MB / 0.5522 GB, free: 3.734 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.7459, allocations: 0 / 0.5522 GB, free: 3.734 MB / 362.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)