Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.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.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") [: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.002359/0.002359, allocations: 195.4 kB / 7.809 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.685/1.685, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.001635/0.001635, allocations: 102.7 kB / 261.4 MB, free: 13.63 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.2585/0.2585, allocations: 37.97 MB / 347.3 MB, free: 7.559 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.508e-06/9.538e-06, allocations: 0 / 409.3 MB, free: 47.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09903/0.09906, allocations: 56.31 MB / 465.6 MB, free: 6.871 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4139/0.513, allocations: 117.4 MB / 0.5694 GB, free: 9.457 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003596/0.5135, allocations: 91.94 kB / 0.5695 GB, free: 9.367 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1355/0.649, allocations: 30.75 MB / 0.5995 GB, free: 10.31 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.748e-05/0.6491, allocations: 24 kB / 0.5995 GB, free: 10.29 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.003707/0.6528, allocations: 1.166 MB / 0.6007 GB, free: 9.066 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.6529, allocations: 12.03 kB / 0.6007 GB, free: 9.055 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008874/0.6538, allocations: 138.6 kB / 0.6008 GB, free: 8.918 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003813/0.6576, allocations: 0.9837 MB / 0.6018 GB, free: 7.887 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.07e-05/0.6577, allocations: 31.91 kB / 0.6018 GB, free: 7.855 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000279/0.658, allocations: 52 kB / 0.6018 GB, free: 7.805 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002595/0.6606, allocations: 0.8239 MB / 0.6026 GB, free: 6.98 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002682/0.6633, allocations: 1.024 MB / 0.6036 GB, free: 5.887 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.705e-05/0.6634, allocations: 7.906 kB / 0.6037 GB, free: 5.879 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001188/0.6636, allocations: 4 kB / 0.6037 GB, free: 5.875 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002024/0.6638, allocations: 61.97 kB / 0.6037 GB, free: 5.812 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01015/0.6739, allocations: 4.405 MB / 0.608 GB, free: 1.199 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.675, allocations: 404.6 kB / 0.6084 GB, free: 0.7773 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/0.6761, allocations: 362.8 kB / 0.6087 GB, free: 424 kB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.001e-05/0.6761, allocations: 8.5 kB / 0.6088 GB, free: 416 kB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.6762, allocations: 35.06 kB / 0.6088 GB, free: 372 kB / 442.7 MB Notification: Performance of pre-optimization done (n=58): time 3.476e-06/0.6762, allocations: 0 / 0.6088 GB, free: 372 kB / 442.7 MB Notification: Performance of matching and sorting (n=62): time 0.00504/0.6813, allocations: 1.854 MB / 0.6106 GB, free: 14.43 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.96e-05/0.6814, allocations: 137 kB / 0.6107 GB, free: 14.27 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009874/0.6824, allocations: 495.5 kB / 0.6112 GB, free: 13.78 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.746e-05/0.6825, allocations: 25.7 kB / 0.6112 GB, free: 13.75 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003331/0.6828, allocations: 425.2 kB / 0.6116 GB, free: 13.33 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002714/0.6831, allocations: 208.9 kB / 0.6118 GB, free: 13.12 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.292e-05/0.6832, allocations: 3.938 kB / 0.6118 GB, free: 13.12 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.6834, allocations: 346.7 kB / 0.6122 GB, free: 12.77 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007141/0.6841, allocations: 241.9 kB / 0.6124 GB, free: 12.54 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009331/0.6851, allocations: 0.4954 MB / 0.6129 GB, free: 11.93 MB / 458.7 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.sm_ctrl.rotor.w = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.00478/0.6898, allocations: 0.7732 MB / 0.6136 GB, free: 11.14 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.798e-06/0.6899, allocations: 4 kB / 0.6136 GB, free: 11.13 MB / 458.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005059/0.6949, allocations: 1.305 MB / 0.6149 GB, free: 9.77 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00141/0.6964, allocations: 3.045 MB / 0.6179 GB, free: 6.492 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.772e-05/0.6965, allocations: 11.98 kB / 0.6179 GB, free: 6.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003114/0.6996, allocations: 446.2 kB / 0.6183 GB, free: 6.039 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.7007, allocations: 143.7 kB / 0.6185 GB, free: 5.898 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005843/0.7066, allocations: 3.954 MB / 0.6223 GB, free: 1.684 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000811/0.7074, allocations: 20.03 kB / 0.6223 GB, free: 1.664 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-05/0.7075, allocations: 44.08 kB / 0.6224 GB, free: 1.621 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.498e-06/0.7076, allocations: 4 kB / 0.6224 GB, free: 1.617 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004503/0.7121, allocations: 1.199 MB / 0.6236 GB, free: 384 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.374e-05/0.7121, allocations: 8 kB / 0.6236 GB, free: 376 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002932/0.7151, allocations: 434.5 kB / 0.624 GB, free: 15.93 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/0.7162, allocations: 147.7 kB / 0.6241 GB, free: 15.79 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01418/0.7304, allocations: 6.785 MB / 0.6307 GB, free: 8.648 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007297/0.7312, allocations: 12 kB / 0.6308 GB, free: 8.637 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.961e-05/0.7313, allocations: 43.98 kB / 0.6308 GB, free: 8.594 MB / 474.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.sm_ctrl.rotor.w = 0.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: sm_ctrl.motor.w_el:VARIABLE(unit = "rad/s" ) "rotor angular velocity el" type: Real PI_i_q.addFF.y:VARIABLE() "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 66 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {4 24} Notification: Performance of prepare postOptimizeDAE: time 0.0003022/0.7316, allocations: 57.98 kB / 0.6309 GB, free: 8.531 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002729/0.7319, allocations: 79.12 kB / 0.6309 GB, free: 8.453 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002143/0.7341, allocations: 0.7717 MB / 0.6317 GB, free: 7.645 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/0.7341, allocations: 8 kB / 0.6317 GB, free: 7.637 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.7341, allocations: 4 kB / 0.6317 GB, free: 7.633 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.7341, allocations: 3.984 kB / 0.6317 GB, free: 7.629 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004535/0.7387, allocations: 1.686 MB / 0.6333 GB, free: 5.852 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.176e-06/0.7387, allocations: 0 / 0.6333 GB, free: 5.852 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001441/0.7402, allocations: 127.9 kB / 0.6335 GB, free: 5.727 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002866/0.7405, allocations: 61.7 kB / 0.6335 GB, free: 5.66 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.34e-05/0.7406, allocations: 11.98 kB / 0.6335 GB, free: 5.648 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002768/0.7434, allocations: 2.624 MB / 0.6361 GB, free: 2.793 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.461e-06/0.7434, allocations: 3.938 kB / 0.6361 GB, free: 2.789 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003027/0.7465, allocations: 1.295 MB / 0.6374 GB, free: 1.418 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004968/0.747, allocations: 204 kB / 0.6376 GB, free: 1.199 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001603/0.7472, allocations: 4 kB / 0.6376 GB, free: 1.195 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007752/0.748, allocations: 19.98 kB / 0.6376 GB, free: 1.176 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.7481, allocations: 44.53 kB / 0.6376 GB, free: 1.133 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.437e-05/0.7482, allocations: 16 kB / 0.6376 GB, free: 1.117 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0007305/0.7489, allocations: 367.2 kB / 0.638 GB, free: 0.7656 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002077/0.751, allocations: 319.9 kB / 0.6383 GB, free: 464 kB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (sm_ctrl.rotor.phi,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003802/0.7514, allocations: 165.9 kB / 0.6385 GB, free: 292 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.1936/0.945, allocations: 1.702 MB / 0.6401 GB, free: 188 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/0.9451, allocations: 3.656 kB / 0.6401 GB, free: 188 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001338/0.9464, allocations: 0.506 MB / 0.6406 GB, free: 187.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002115/0.9486, allocations: 145.8 kB / 0.6408 GB, free: 187.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006685/0.9553, allocations: 1.666 MB / 0.6424 GB, free: 187.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001627/0.957, allocations: 1.187 MB / 0.6435 GB, free: 186.7 MB / 474.7 MB Notification: Performance of SimCode: time 1.292e-06/0.957, allocations: 0 / 0.6435 GB, free: 186.7 MB / 474.7 MB Notification: Performance of Templates: time 0.03811/0.9951, allocations: 20.89 MB / 0.6639 GB, free: 186.3 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1)