Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.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_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") [: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.001414/0.001414, 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.05101/0.05101, allocations: 8.706 MB / 16.58 MB, free: 156 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.403/1.403, allocations: 221.4 MB / 240.5 MB, free: 12.92 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.0009906/0.0009905, allocations: 93.48 kB / 293.5 MB, free: 9.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 6.302e-06/6.322e-06, allocations: 0 / 352.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2911, allocations: 52.54 MB / 404.6 MB, free: 30.55 MB / 302.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3182/0.6093, allocations: 116.2 MB / 0.5086 GB, free: 77.6 MB / 382.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/0.6096, allocations: 75.75 kB / 0.5087 GB, free: 77.6 MB / 382.1 MB Notification: Performance of FrontEnd: time 0.3914/1.001, allocations: 155.7 MB / 0.6607 GB, free: 4.918 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003488/1.001, allocations: 91.92 kB / 0.6608 GB, free: 4.828 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.0112/1.013, allocations: 3.62 MB / 0.6644 GB, free: 1.145 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/1.013, allocations: 8.031 kB / 0.6644 GB, free: 1.137 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006279/1.019, allocations: 0.8966 MB / 0.6652 GB, free: 240 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.145/1.164, allocations: 3.618 MB / 0.6688 GB, free: 100.5 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001783/1.164, allocations: 123.6 kB / 0.6689 GB, free: 100.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001114/1.165, allocations: 213.7 kB / 0.6691 GB, free: 100.5 MB / 446.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007836/1.173, allocations: 3.535 MB / 0.6725 GB, free: 100.4 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009665/1.183, allocations: 4.104 MB / 0.6766 GB, free: 100 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-05/1.183, allocations: 5.156 kB / 0.6766 GB, free: 100 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003676/1.183, allocations: 7.656 kB / 0.6766 GB, free: 100 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001206/1.184, allocations: 160.9 kB / 0.6767 GB, free: 100 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02382/1.207, allocations: 15.16 MB / 0.6915 GB, free: 96.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001622/1.209, allocations: 1.14 MB / 0.6926 GB, free: 96.49 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002203/1.211, allocations: 1.553 MB / 0.6942 GB, free: 96.48 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007314/1.219, allocations: 4.343 MB / 0.6984 GB, free: 95.71 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/1.219, allocations: 51.41 kB / 0.6985 GB, free: 95.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=167): time 3.186e-06/1.219, allocations: 0 / 0.6985 GB, free: 95.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=189): time 0.01245/1.231, allocations: 5.661 MB / 0.704 GB, free: 94.49 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.756e-05/1.231, allocations: 73.5 kB / 0.704 GB, free: 94.43 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003165/1.234, allocations: 1.573 MB / 0.7056 GB, free: 94.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001875/1.235, allocations: 33.5 kB / 0.7056 GB, free: 94.16 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000771/1.235, allocations: 1.401 MB / 0.707 GB, free: 93.31 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005843/1.236, allocations: 0.6125 MB / 0.7076 GB, free: 92.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/1.236, allocations: 0 / 0.7076 GB, free: 92.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/1.236, allocations: 402.3 kB / 0.708 GB, free: 92.59 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001382/1.238, allocations: 0.8743 MB / 0.7088 GB, free: 92.59 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001619/1.239, allocations: 1.6 MB / 0.7104 GB, free: 91.71 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001986/1.241, allocations: 1.215 MB / 0.7116 GB, free: 91.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-05/1.241, allocations: 10.38 kB / 0.7116 GB, free: 91.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=309) (initialization): time 0.005164/1.246, allocations: 2.997 MB / 0.7145 GB, free: 91.38 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/1.247, allocations: 9.969 kB / 0.7145 GB, free: 91.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.174e-05/1.247, allocations: 25.22 kB / 0.7145 GB, free: 91.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008645/1.247, allocations: 295.7 kB / 0.7148 GB, free: 91.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002143/1.25, allocations: 0.5485 MB / 0.7154 GB, free: 91.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003813/1.253, allocations: 4.165 MB / 0.7194 GB, free: 88.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002117/1.256, allocations: 60.64 kB / 0.7195 GB, free: 88.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003848/1.256, allocations: 104.9 kB / 0.7196 GB, free: 88.78 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.000532/1.257, allocations: 183.1 kB / 0.7198 GB, free: 88.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005689/1.257, allocations: 229.8 kB / 0.72 GB, free: 88.54 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004707/1.262, allocations: 2.557 MB / 0.7225 GB, free: 88.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.535e-05/1.262, allocations: 21.62 kB / 0.7225 GB, free: 88.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.747e-05/1.262, allocations: 3.938 kB / 0.7225 GB, free: 88.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.829e-05/1.262, allocations: 15.36 kB / 0.7225 GB, free: 88.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01033/1.272, allocations: 5.793 MB / 0.7282 GB, free: 87.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.789e-06/1.272, allocations: 3.75 kB / 0.7282 GB, free: 87.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001519/1.274, allocations: 318.3 kB / 0.7285 GB, free: 87.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008655/1.275, allocations: 309.2 kB / 0.7288 GB, free: 87.36 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001522/1.275, allocations: 15.08 kB / 0.7288 GB, free: 87.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005233/1.28, allocations: 5.974 MB / 0.7346 GB, free: 83.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.269e-06/1.28, allocations: 3.938 kB / 0.7346 GB, free: 83.52 MB / 446.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006048/1.286, allocations: 3.927 MB / 0.7385 GB, free: 82.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001312/1.288, allocations: 0.491 MB / 0.7389 GB, free: 81.76 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007295/1.288, allocations: 10.97 kB / 0.7389 GB, free: 81.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001472/1.29, allocations: 46.33 kB / 0.739 GB, free: 81.76 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002308/1.29, allocations: 108.5 kB / 0.7391 GB, free: 81.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/1.29, allocations: 49.73 kB / 0.7391 GB, free: 81.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 0.002036/1.292, allocations: 1.151 MB / 0.7403 GB, free: 81.22 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002686/1.295, allocations: 0.6176 MB / 0.7409 GB, free: 81.21 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.0005224/1.295, allocations: 372.5 kB / 0.7412 GB, free: 81.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003513/1.299, allocations: 2.515 MB / 0.7437 GB, free: 80 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/1.299, allocations: 3.656 kB / 0.7437 GB, free: 80 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001931/1.301, allocations: 1.403 MB / 0.7451 GB, free: 79.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002443/1.303, allocations: 392.6 kB / 0.7454 GB, free: 79.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/1.319, allocations: 5.369 MB / 0.7507 GB, free: 77.18 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004508/1.323, allocations: 2.761 MB / 0.7534 GB, free: 76.11 MB / 446.1 MB Notification: Performance of SimCode: time 1.793e-06/1.323, allocations: 0 / 0.7534 GB, free: 76.11 MB / 446.1 MB Notification: Performance of Templates: time 0.08805/1.411, allocations: 30.68 MB / 0.7833 GB, free: 72.23 MB / 446.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1)