Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.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_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") [: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.002475/0.002475, allocations: 179.3 kB / 7.453 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0422/0.0422, allocations: 8.698 MB / 16.57 MB, free: 444 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 221.4 MB / 240.5 MB, free: 8.152 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009417/0.0009416, allocations: 94.41 kB / 293.5 MB, free: 5.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.783e-06/6.803e-06, allocations: 0 / 352.1 MB, free: 10.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2517, allocations: 52.55 MB / 404.6 MB, free: 26.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3552/0.607, allocations: 116.2 MB / 0.5086 GB, free: 98.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/0.6073, allocations: 74.73 kB / 0.5087 GB, free: 98.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.3504/0.9576, allocations: 156 MB / 0.6611 GB, free: 5.988 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004822/0.9582, allocations: 87.94 kB / 0.6612 GB, free: 5.902 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: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01203/0.9702, allocations: 3.62 MB / 0.6647 GB, free: 2.219 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.9703, allocations: 8.031 kB / 0.6647 GB, free: 2.211 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00645/0.9768, allocations: 0.9044 MB / 0.6656 GB, free: 1.301 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1707/1.148, allocations: 3.613 MB / 0.6691 GB, free: 98.03 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/1.148, allocations: 124.2 kB / 0.6692 GB, free: 98.03 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005447/1.148, allocations: 223.8 kB / 0.6694 GB, free: 98.03 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00687/1.155, allocations: 3.527 MB / 0.6729 GB, free: 98.01 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007442/1.163, allocations: 4.105 MB / 0.6769 GB, free: 97.6 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.245e-05/1.163, allocations: 6.844 kB / 0.6769 GB, free: 97.6 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003127/1.163, allocations: 11.22 kB / 0.6769 GB, free: 97.59 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001138/1.163, allocations: 154.6 kB / 0.6771 GB, free: 97.59 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02191/1.185, allocations: 15.16 MB / 0.6919 GB, free: 94.08 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/1.187, allocations: 1.142 MB / 0.693 GB, free: 94.06 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002049/1.189, allocations: 1.554 MB / 0.6945 GB, free: 94.04 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006745/1.195, allocations: 4.342 MB / 0.6987 GB, free: 93.28 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.421e-05/1.195, allocations: 55 kB / 0.6988 GB, free: 93.24 MB / 442.7 MB Notification: Performance of pre-optimization done (n=167): time 3.577e-06/1.195, allocations: 0 / 0.6988 GB, free: 93.24 MB / 442.7 MB Notification: Performance of matching and sorting (n=189): time 0.01061/1.206, allocations: 5.665 MB / 0.7043 GB, free: 92.07 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.468e-05/1.206, allocations: 68.12 kB / 0.7044 GB, free: 92 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002102/1.208, allocations: 1.57 MB / 0.7059 GB, free: 91.77 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/1.208, allocations: 25.7 kB / 0.706 GB, free: 91.74 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005023/1.209, allocations: 1.405 MB / 0.7073 GB, free: 90.89 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003666/1.209, allocations: 0.6125 MB / 0.7079 GB, free: 90.49 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.796e-05/1.209, allocations: 0 / 0.7079 GB, free: 90.49 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/1.21, allocations: 402.6 kB / 0.7083 GB, free: 90.18 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001152/1.211, allocations: 0.8685 MB / 0.7092 GB, free: 90.18 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/1.212, allocations: 1.6 MB / 0.7107 GB, free: 89.3 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001815/1.214, allocations: 1.218 MB / 0.7119 GB, free: 89.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.888e-06/1.214, allocations: 3.875 kB / 0.7119 GB, free: 89.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=309) (initialization): time 0.004801/1.219, allocations: 3.005 MB / 0.7148 GB, free: 88.97 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/1.219, allocations: 11.11 kB / 0.7149 GB, free: 88.97 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.432e-05/1.219, allocations: 22.38 kB / 0.7149 GB, free: 88.97 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008035/1.22, allocations: 294 kB / 0.7152 GB, free: 88.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002018/1.222, allocations: 0.5405 MB / 0.7157 GB, free: 88.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003666/1.225, allocations: 4.181 MB / 0.7198 GB, free: 86.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001863/1.227, allocations: 61.41 kB / 0.7198 GB, free: 86.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001865/1.227, allocations: 105.8 kB / 0.7199 GB, free: 86.36 MB / 442.7 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.0003404/1.228, allocations: 176.7 kB / 0.7201 GB, free: 86.24 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003133/1.228, allocations: 226.2 kB / 0.7203 GB, free: 86.13 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004088/1.232, allocations: 2.566 MB / 0.7228 GB, free: 85.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/1.232, allocations: 16.81 kB / 0.7228 GB, free: 85.79 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/1.232, allocations: 3.969 kB / 0.7228 GB, free: 85.79 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.676e-05/1.232, allocations: 10.97 kB / 0.7229 GB, free: 85.79 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008188/1.241, allocations: 5.789 MB / 0.7285 GB, free: 84.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/1.241, allocations: 3.188 kB / 0.7285 GB, free: 84.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001466/1.242, allocations: 318.3 kB / 0.7288 GB, free: 84.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007964/1.243, allocations: 313 kB / 0.7291 GB, free: 84.95 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001125/1.243, allocations: 16.22 kB / 0.7291 GB, free: 84.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004803/1.248, allocations: 5.978 MB / 0.735 GB, free: 81.11 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/1.248, allocations: 5.562 kB / 0.735 GB, free: 81.11 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005157/1.253, allocations: 3.93 MB / 0.7388 GB, free: 79.61 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001157/1.254, allocations: 499.8 kB / 0.7393 GB, free: 79.27 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003558/1.255, allocations: 7.594 kB / 0.7393 GB, free: 79.26 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/1.256, allocations: 48.8 kB / 0.7393 GB, free: 79.26 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002114/1.256, allocations: 103.8 kB / 0.7394 GB, free: 79.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001138/1.256, allocations: 53.94 kB / 0.7395 GB, free: 79.23 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001637/1.258, allocations: 1.156 MB / 0.7406 GB, free: 78.72 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002352/1.26, allocations: 0.6138 MB / 0.7412 GB, free: 78.71 MB / 442.7 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.0004821/1.26, allocations: 357 kB / 0.7416 GB, free: 78.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003217/1.264, allocations: 2.52 MB / 0.744 GB, free: 77.51 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/1.264, allocations: 3.75 kB / 0.744 GB, free: 77.51 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001714/1.265, allocations: 1.421 MB / 0.7454 GB, free: 76.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001901/1.267, allocations: 385.6 kB / 0.7458 GB, free: 76.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/1.279, allocations: 5.361 MB / 0.751 GB, free: 74.69 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003195/1.282, allocations: 2.766 MB / 0.7537 GB, free: 73.61 MB / 442.7 MB Notification: Performance of SimCode: time 9.92e-07/1.282, allocations: 0 / 0.7537 GB, free: 73.61 MB / 442.7 MB Notification: Performance of Templates: time 0.05508/1.337, allocations: 30.67 MB / 0.7837 GB, free: 69.68 MB / 442.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1)