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/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_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"}) [: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.001004/0.001004, allocations: 182.9 kB / 8.137 MB, free: 2.223 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.017/1.017, allocations: 194.2 MB / 202.8 MB, free: 8.832 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.00175/0.00175, allocations: 117.6 kB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1569/0.1569, allocations: 37.91 MB / 330.5 MB, free: 7.023 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1754/0.3324, allocations: 59.34 MB / 389.9 MB, free: 78.07 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07628/0.4086, allocations: 53.23 MB / 443.1 MB, free: 24.92 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2792/0.6879, allocations: 95.7 MB / 0.5262 GB, free: 8.902 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.006052/0.694, allocations: 2.159 MB / 0.5283 GB, free: 8.324 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.03718/0.7312, allocations: 14.87 MB / 0.5428 GB, free: 13.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.7312, allocations: 12 kB / 0.5428 GB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001778/0.7314, allocations: 55.34 kB / 0.5429 GB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001616/0.7331, allocations: 0.6833 MB / 0.5435 GB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.594e-05/0.7331, allocations: 12 kB / 0.5436 GB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.955e-05/0.7332, allocations: 31.44 kB / 0.5436 GB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004789/0.7337, allocations: 235.5 kB / 0.5438 GB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006065/0.7343, allocations: 411.5 kB / 0.5442 GB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.181e-05/0.7343, allocations: 7.938 kB / 0.5442 GB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.334e-05/0.7344, allocations: 0 / 0.5442 GB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.7344, allocations: 8 kB / 0.5442 GB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002066/0.7365, allocations: 1.772 MB / 0.546 GB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002534/0.7367, allocations: 186.6 kB / 0.5461 GB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/0.7368, allocations: 83.19 kB / 0.5462 GB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.7369, allocations: 192 / 0.5462 GB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001981/0.7371, allocations: 149.7 kB / 0.5464 GB, free: 10.53 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.7371, allocations: 4 kB / 0.5464 GB, free: 10.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.001688/0.7388, allocations: 1.007 MB / 0.5473 GB, free: 9.547 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.901e-05/0.7389, allocations: 128.5 kB / 0.5475 GB, free: 9.391 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003366/0.7392, allocations: 303.1 kB / 0.5478 GB, free: 9.152 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.928e-05/0.7393, allocations: 33.64 kB / 0.5478 GB, free: 9.113 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.7394, allocations: 224.7 kB / 0.548 GB, free: 8.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.832e-05/0.7394, allocations: 89.03 kB / 0.5481 GB, free: 8.832 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.724e-05/0.7395, allocations: 0 / 0.5481 GB, free: 8.832 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.7396, allocations: 351.4 kB / 0.5484 GB, free: 8.496 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.7398, allocations: 77.3 kB / 0.5485 GB, free: 8.445 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.74, allocations: 202.4 kB / 0.5487 GB, free: 8.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002038/0.7402, allocations: 107 kB / 0.5488 GB, free: 8.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.7402, allocations: 7.984 kB / 0.5488 GB, free: 8.152 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008036/0.741, allocations: 394.4 kB / 0.5492 GB, free: 7.832 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.7411, allocations: 4 kB / 0.5492 GB, free: 7.828 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.7411, allocations: 4 kB / 0.5492 GB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004346/0.7415, allocations: 94.78 kB / 0.5493 GB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002743/0.7418, allocations: 67.89 kB / 0.5493 GB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002265/0.7441, allocations: 1.743 MB / 0.551 GB, free: 5.992 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002894/0.7444, allocations: 23.83 kB / 0.5511 GB, free: 5.969 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.743e-05/0.7444, allocations: 19.25 kB / 0.5511 GB, free: 5.953 MB / 362.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 1 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001334/0.7446, allocations: 112.4 kB / 0.5512 GB, free: 5.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.83e-05/0.7446, allocations: 35.53 kB / 0.5512 GB, free: 5.805 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006365/0.7453, allocations: 283.2 kB / 0.5515 GB, free: 5.582 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.718e-06/0.7453, allocations: 0 / 0.5515 GB, free: 5.582 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.7453, allocations: 4 kB / 0.5515 GB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.7453, allocations: 0 / 0.5515 GB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.7464, allocations: 0.6937 MB / 0.5522 GB, free: 4.984 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.7464, allocations: 7.984 kB / 0.5522 GB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002837/0.7467, allocations: 47.92 kB / 0.5522 GB, free: 4.934 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002191/0.747, allocations: 56.23 kB / 0.5523 GB, free: 4.883 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.747, allocations: 7.891 kB / 0.5523 GB, free: 4.875 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001266/0.7483, allocations: 1.365 MB / 0.5536 GB, free: 3.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.7483, allocations: 0 / 0.5536 GB, free: 3.48 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006887/0.749, allocations: 0.5052 MB / 0.5541 GB, free: 3.035 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009409/0.7499, allocations: 0.9722 MB / 0.5551 GB, free: 2.168 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001587/0.7501, allocations: 136.1 kB / 0.5552 GB, free: 2.027 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.726e-05/0.7502, allocations: 7.984 kB / 0.5552 GB, free: 2.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/0.7504, allocations: 15.88 kB / 0.5552 GB, free: 2.008 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.534e-05/0.7505, allocations: 15.97 kB / 0.5552 GB, free: 1.992 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.7505, allocations: 7.125 kB / 0.5552 GB, free: 1.988 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002339/0.7507, allocations: 232.5 kB / 0.5555 GB, free: 1.812 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00111/0.7519, allocations: 113.2 kB / 0.5556 GB, free: 1.711 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.motor.phi_el,dcm_ser.motor.w_el,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006279/0.7525, allocations: 293.3 kB / 0.5558 GB, free: 1.469 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008668/0.7534, allocations: 396.1 kB / 0.5562 GB, free: 1.129 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.7534, allocations: 0 / 0.5562 GB, free: 1.129 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000355/0.7538, allocations: 229.8 kB / 0.5564 GB, free: 0.9258 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005702/0.7543, allocations: 95.66 kB / 0.5565 GB, free: 0.8516 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001795/0.7561, allocations: 0.7755 MB / 0.5573 GB, free: 112 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006721/0.7568, allocations: 0.9075 MB / 0.5582 GB, free: 15.18 MB / 378.7 MB Notification: Performance of SimCode: time 3.91e-07/0.7568, allocations: 0 / 0.5582 GB, free: 15.18 MB / 378.7 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/linux/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)