Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001692/0.001691, allocations: 192.6 kB / 7.806 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.624/1.624, allocations: 205.2 MB / 213.4 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001244/0.001244, allocations: 92.48 kB / 261.4 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.258/0.258, allocations: 37.98 MB / 347.3 MB, free: 7.527 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.733e-06/6.752e-06, allocations: 0 / 409.3 MB, free: 47.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09543/0.09546, allocations: 56.32 MB / 465.6 MB, free: 6.836 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3503/0.4459, allocations: 99.5 MB / 0.5519 GB, free: 11.36 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003179/0.4462, allocations: 87.95 kB / 0.552 GB, free: 11.27 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.05326/0.4995, allocations: 12.61 MB / 0.5643 GB, free: 14.53 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.969e-05/0.4996, allocations: 12 kB / 0.5643 GB, free: 14.52 MB / 410.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.001586/0.5012, allocations: 0.6803 MB / 0.565 GB, free: 13.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.5012, allocations: 19.91 kB / 0.565 GB, free: 13.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.5014, allocations: 51.34 kB / 0.565 GB, free: 13.71 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002242/0.5037, allocations: 0.6709 MB / 0.5657 GB, free: 13.01 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/0.5038, allocations: 50.69 kB / 0.5657 GB, free: 12.95 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.78e-05/0.5039, allocations: 24 kB / 0.5657 GB, free: 12.93 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008626/0.5048, allocations: 273.9 kB / 0.566 GB, free: 12.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.5058, allocations: 448.1 kB / 0.5664 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.898e-05/0.5059, allocations: 3.984 kB / 0.5664 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.354e-05/0.506, allocations: 4 kB / 0.5664 GB, free: 12.17 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.506, allocations: 8 kB / 0.5665 GB, free: 12.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003439/0.5094, allocations: 1.9 MB / 0.5683 GB, free: 10.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003666/0.5098, allocations: 158.9 kB / 0.5685 GB, free: 9.977 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002029/0.51, allocations: 86.5 kB / 0.5685 GB, free: 9.883 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.5101, allocations: 4 kB / 0.5685 GB, free: 9.879 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.5101, allocations: 34.88 kB / 0.5686 GB, free: 9.836 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 2.705e-06/0.5101, allocations: 0 / 0.5686 GB, free: 9.836 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.001764/0.5119, allocations: 0.71 MB / 0.5693 GB, free: 9.062 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.844e-05/0.512, allocations: 102.8 kB / 0.5694 GB, free: 8.938 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003813/0.5124, allocations: 247.5 kB / 0.5696 GB, free: 8.688 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.053e-05/0.5124, allocations: 25.7 kB / 0.5696 GB, free: 8.656 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.5126, allocations: 289.9 kB / 0.5699 GB, free: 8.371 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.369e-05/0.5127, allocations: 74.91 kB / 0.57 GB, free: 8.297 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.802e-05/0.5127, allocations: 4.062 kB / 0.57 GB, free: 8.293 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.5129, allocations: 326.8 kB / 0.5703 GB, free: 7.965 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.5131, allocations: 63.98 kB / 0.5704 GB, free: 7.902 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003/0.5134, allocations: 193.1 kB / 0.5705 GB, free: 7.652 MB / 410.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.001077/0.5145, allocations: 285.2 kB / 0.5708 GB, free: 7.359 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.5145, allocations: 0 / 0.5708 GB, free: 7.359 MB / 410.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001089/0.5156, allocations: 324.8 kB / 0.5711 GB, free: 7.035 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.5156, allocations: 8.594 kB / 0.5711 GB, free: 7.027 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.5156, allocations: 8 kB / 0.5711 GB, free: 7.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005418/0.5162, allocations: 76.81 kB / 0.5712 GB, free: 6.941 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00047/0.5167, allocations: 71.84 kB / 0.5713 GB, free: 6.871 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002723/0.5194, allocations: 1.697 MB / 0.5729 GB, free: 5.059 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002979/0.5197, allocations: 8 kB / 0.5729 GB, free: 5.051 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.433e-05/0.5198, allocations: 16 kB / 0.573 GB, free: 5.035 MB / 410.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 (34): * Single equations (assignments): 33 * 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.0001228/0.5199, allocations: 45.72 kB / 0.573 GB, free: 4.984 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.5201, allocations: 35.53 kB / 0.573 GB, free: 4.949 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001149/0.5202, allocations: 30.89 kB / 0.5731 GB, free: 4.918 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.5202, allocations: 4 kB / 0.5731 GB, free: 4.914 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.5202, allocations: 4 kB / 0.5731 GB, free: 4.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.5202, allocations: 0 / 0.5731 GB, free: 4.91 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001463/0.5217, allocations: 0.6833 MB / 0.5737 GB, free: 4.164 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.5217, allocations: 0 / 0.5737 GB, free: 4.164 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005069/0.5223, allocations: 43.97 kB / 0.5738 GB, free: 4.121 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001323/0.5224, allocations: 20.84 kB / 0.5738 GB, free: 4.098 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.643e-05/0.5224, allocations: 8 kB / 0.5738 GB, free: 4.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001139/0.5236, allocations: 1.236 MB / 0.575 GB, free: 2.734 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/0.5236, allocations: 8.094 kB / 0.575 GB, free: 2.727 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008331/0.5245, allocations: 490.2 kB / 0.5755 GB, free: 2.203 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001699/0.5247, allocations: 120.7 kB / 0.5756 GB, free: 2.066 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.608e-05/0.5247, allocations: 7.844 kB / 0.5756 GB, free: 2.059 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003517/0.5251, allocations: 8 kB / 0.5756 GB, free: 2.051 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.384e-05/0.5252, allocations: 15.97 kB / 0.5756 GB, free: 2.035 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.5252, allocations: 8 kB / 0.5756 GB, free: 2.027 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002813/0.5255, allocations: 191.1 kB / 0.5758 GB, free: 1.844 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006999/0.5262, allocations: 76 kB / 0.5759 GB, free: 1.77 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.rotor.phi,dcm_pm.motor.i,loadInertia.w) * Number of discrete variables: 1 (system.initime) * Number of discrete 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.0002252/0.5264, allocations: 133.7 kB / 0.576 GB, free: 1.633 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008601/0.5273, allocations: 310.9 kB / 0.5763 GB, free: 1.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.5273, allocations: 1.188 kB / 0.5763 GB, free: 1.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004129/0.5278, allocations: 197.8 kB / 0.5765 GB, free: 1.117 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007752/0.5285, allocations: 69.84 kB / 0.5766 GB, free: 1.051 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002059/0.5306, allocations: 0.7004 MB / 0.5773 GB, free: 308 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006736/0.5313, allocations: 0.8811 MB / 0.5781 GB, free: 15.39 MB / 426.7 MB Notification: Performance of SimCode: time 9.42e-07/0.5313, allocations: 0 / 0.5781 GB, free: 15.39 MB / 426.7 MB Notification: Performance of Templates: time 0.01355/0.5449, allocations: 6.593 MB / 0.5846 GB, free: 8.793 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)