Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") [: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 4.0.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 179.2 kB / 7.459 MB, free: 480 kB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0598/0.0598, allocations: 8.706 MB / 16.58 MB, free: 160 kB / 11.04 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.268/1.268, allocations: 221.4 MB / 240.5 MB, free: 12.93 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009151/0.0009152, allocations: 100.7 kB / 293.5 MB, free: 9.461 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 7.494e-06/7.524e-06, allocations: 0 / 352.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2539, allocations: 52.54 MB / 404.6 MB, free: 30.59 MB / 302.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3427/0.5966, allocations: 116.2 MB / 0.5086 GB, free: 100.5 MB / 382.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.597, allocations: 79.75 kB / 0.5087 GB, free: 100.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 0.356/0.953, allocations: 156.2 MB / 0.6613 GB, free: 12.55 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003776/0.9534, allocations: 83.94 kB / 0.6613 GB, free: 12.46 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01156/0.965, allocations: 3.616 MB / 0.6649 GB, free: 8.785 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.965, allocations: 8.031 kB / 0.6649 GB, free: 8.777 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005962/0.971, allocations: 0.9044 MB / 0.6658 GB, free: 7.867 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01068/0.9817, allocations: 3.624 MB / 0.6693 GB, free: 4.188 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002793/0.982, allocations: 120 kB / 0.6694 GB, free: 4.07 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001185/0.9832, allocations: 219.9 kB / 0.6696 GB, free: 3.855 MB / 446.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008885/0.9921, allocations: 3.529 MB / 0.6731 GB, free: 332 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1646/1.157, allocations: 4.109 MB / 0.6771 GB, free: 101.1 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9e-05/1.157, allocations: 0.6562 kB / 0.6771 GB, free: 101.1 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003043/1.157, allocations: 6.219 kB / 0.6771 GB, free: 101.1 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001137/1.157, allocations: 158.5 kB / 0.6772 GB, free: 101 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02401/1.181, allocations: 15.16 MB / 0.692 GB, free: 97.64 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001543/1.183, allocations: 1.135 MB / 0.6932 GB, free: 97.62 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002076/1.185, allocations: 1.564 MB / 0.6947 GB, free: 97.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007672/1.193, allocations: 4.346 MB / 0.6989 GB, free: 96.84 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/1.193, allocations: 47.75 kB / 0.699 GB, free: 96.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=167): time 4.068e-06/1.193, allocations: 0 / 0.699 GB, free: 96.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=189): time 0.01133/1.204, allocations: 5.655 MB / 0.7045 GB, free: 95.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.964e-05/1.204, allocations: 75.81 kB / 0.7046 GB, free: 95.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002342/1.207, allocations: 1.573 MB / 0.7061 GB, free: 95.39 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001404/1.207, allocations: 25.7 kB / 0.7061 GB, free: 95.36 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006406/1.207, allocations: 1.407 MB / 0.7075 GB, free: 94.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004213/1.208, allocations: 0.6192 MB / 0.7081 GB, free: 94.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/1.208, allocations: 2.812 kB / 0.7081 GB, free: 94.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/1.208, allocations: 398.2 kB / 0.7085 GB, free: 94 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/1.209, allocations: 0.8673 MB / 0.7093 GB, free: 93.99 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/1.211, allocations: 1.596 MB / 0.7109 GB, free: 93.12 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001787/1.212, allocations: 1.219 MB / 0.7121 GB, free: 93.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.096e-05/1.212, allocations: 6.156 kB / 0.7121 GB, free: 93.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=309) (initialization): time 0.004758/1.217, allocations: 3.003 MB / 0.715 GB, free: 92.79 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/1.217, allocations: 3.5 kB / 0.715 GB, free: 92.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.403e-05/1.217, allocations: 29.23 kB / 0.7151 GB, free: 92.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000808/1.218, allocations: 297.5 kB / 0.7153 GB, free: 92.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002058/1.22, allocations: 0.5439 MB / 0.7159 GB, free: 92.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003856/1.224, allocations: 4.169 MB / 0.7199 GB, free: 90.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002343/1.226, allocations: 58.73 kB / 0.72 GB, free: 90.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002606/1.227, allocations: 112.4 kB / 0.7201 GB, free: 90.18 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (289): * Single equations (assignments): 286 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004099/1.227, allocations: 174.1 kB / 0.7203 GB, free: 90.05 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003393/1.227, allocations: 223.6 kB / 0.7205 GB, free: 89.94 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004296/1.232, allocations: 2.564 MB / 0.723 GB, free: 89.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.535e-05/1.232, allocations: 22.75 kB / 0.723 GB, free: 89.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/1.232, allocations: 3.719 kB / 0.723 GB, free: 89.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.661e-05/1.232, allocations: 10.17 kB / 0.723 GB, free: 89.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0089/1.241, allocations: 5.79 MB / 0.7287 GB, free: 88.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.475e-06/1.241, allocations: 3.906 kB / 0.7287 GB, free: 88.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001476/1.242, allocations: 322.5 kB / 0.729 GB, free: 88.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007882/1.243, allocations: 320.3 kB / 0.7293 GB, free: 88.76 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/1.243, allocations: 16.42 kB / 0.7293 GB, free: 88.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004831/1.248, allocations: 5.968 MB / 0.7351 GB, free: 84.93 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/1.248, allocations: 5.688 kB / 0.7351 GB, free: 84.93 MB / 446.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005791/1.254, allocations: 3.924 MB / 0.739 GB, free: 84.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001493/1.255, allocations: 0.4892 MB / 0.7395 GB, free: 83.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003654/1.256, allocations: 21.03 kB / 0.7395 GB, free: 83.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/1.257, allocations: 39.64 kB / 0.7395 GB, free: 83.98 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000217/1.257, allocations: 106.6 kB / 0.7396 GB, free: 83.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/1.257, allocations: 50.89 kB / 0.7397 GB, free: 83.97 MB / 446.1 MB Notification: Performance of sort global known variables: time 0.001682/1.259, allocations: 1.158 MB / 0.7408 GB, free: 83.83 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002397/1.261, allocations: 0.612 MB / 0.7414 GB, free: 83.83 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (163): * Single equations (assignments): 160 * 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: 3 {(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000524/1.262, allocations: 352.9 kB / 0.7417 GB, free: 83.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003288/1.265, allocations: 2.52 MB / 0.7442 GB, free: 83.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/1.265, allocations: 0 / 0.7442 GB, free: 83.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001741/1.267, allocations: 1.416 MB / 0.7456 GB, free: 82.77 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001855/1.269, allocations: 394.3 kB / 0.7459 GB, free: 82.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01111/1.28, allocations: 5.369 MB / 0.7512 GB, free: 80.65 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002848/1.283, allocations: 2.765 MB / 0.7539 GB, free: 79.57 MB / 446.1 MB Notification: Performance of SimCode: time 1.162e-06/1.283, allocations: 0 / 0.7539 GB, free: 79.57 MB / 446.1 MB Notification: Performance of Templates: time 0.08168/1.365, allocations: 30.67 MB / 0.7838 GB, free: 78.2 MB / 446.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1)