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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) [: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.004053/0.004053, allocations: 176.8 kB / 7.458 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04933/0.04933, allocations: 8.703 MB / 16.57 MB, free: 0.5586 MB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.259/2.259, allocations: 221.4 MB / 240.5 MB, free: 8.148 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.001179/0.001179, allocations: 97.45 kB / 293.5 MB, free: 5.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2467/0.248, allocations: 58.67 MB / 352.2 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5679/0.8159, allocations: 52.54 MB / 404.7 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7283/1.544, allocations: 116.2 MB / 0.5087 GB, free: 98.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003985/1.545, allocations: 74.98 kB / 0.5088 GB, free: 98.2 MB / 378.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.6459/2.191, allocations: 159.9 MB / 0.665 GB, free: 1.938 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.871e-05/2.191, allocations: 12 kB / 0.665 GB, free: 1.926 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0138/2.205, allocations: 0.8927 MB / 0.6659 GB, free: 1.027 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4853/2.69, allocations: 3.615 MB / 0.6694 GB, free: 96.69 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005084/2.691, allocations: 120.2 kB / 0.6695 GB, free: 96.69 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00256/2.693, allocations: 220.3 kB / 0.6697 GB, free: 96.68 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01434/2.708, allocations: 3.532 MB / 0.6732 GB, free: 96.67 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02301/2.731, allocations: 4.107 MB / 0.6772 GB, free: 96.25 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002587/2.731, allocations: 15.25 kB / 0.6772 GB, free: 96.25 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001246/2.732, allocations: 3.75 kB / 0.6772 GB, free: 96.25 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000244/2.733, allocations: 152.5 kB / 0.6773 GB, free: 96.24 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0705/2.803, allocations: 15.17 MB / 0.6922 GB, free: 92.73 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00385/2.807, allocations: 1.147 MB / 0.6933 GB, free: 92.71 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003879/2.811, allocations: 1.551 MB / 0.6948 GB, free: 92.7 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01307/2.824, allocations: 4.34 MB / 0.699 GB, free: 91.93 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.085e-05/2.824, allocations: 55.38 kB / 0.6991 GB, free: 91.89 MB / 442.7 MB Notification: Performance of pre-optimization done (n=167): time 5.35e-06/2.824, allocations: 0 / 0.6991 GB, free: 91.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=189): time 0.01729/2.842, allocations: 5.651 MB / 0.7046 GB, free: 90.73 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.249e-05/2.842, allocations: 76.84 kB / 0.7047 GB, free: 90.67 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006101/2.848, allocations: 1.565 MB / 0.7062 GB, free: 90.44 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005351/2.848, allocations: 28.73 kB / 0.7062 GB, free: 90.41 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001491/2.85, allocations: 1.404 MB / 0.7076 GB, free: 89.56 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00123/2.851, allocations: 0.6134 MB / 0.7082 GB, free: 89.15 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003652/2.852, allocations: 0 / 0.7082 GB, free: 89.15 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003511/2.852, allocations: 402.1 kB / 0.7086 GB, free: 88.85 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002173/2.854, allocations: 0.8695 MB / 0.7094 GB, free: 88.84 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002445/2.857, allocations: 1.6 MB / 0.711 GB, free: 87.96 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002911/2.86, allocations: 1.224 MB / 0.7122 GB, free: 87.94 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.033e-05/2.86, allocations: 7.656 kB / 0.7122 GB, free: 87.94 MB / 442.7 MB Notification: Performance of matching and sorting (n=309) (initialization): time 0.008168/2.868, allocations: 3.002 MB / 0.7151 GB, free: 87.63 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.044e-05/2.868, allocations: 3.25 kB / 0.7151 GB, free: 87.63 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.747e-05/2.868, allocations: 26.44 kB / 0.7152 GB, free: 87.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009861/2.869, allocations: 296.5 kB / 0.7154 GB, free: 87.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002387/2.871, allocations: 0.5401 MB / 0.716 GB, free: 87.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005434/2.877, allocations: 4.17 MB / 0.72 GB, free: 85.03 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003294/2.88, allocations: 60.72 kB / 0.7201 GB, free: 85.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004278/2.881, allocations: 108.8 kB / 0.7202 GB, free: 85.02 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.0005527/2.881, allocations: 176.9 kB / 0.7204 GB, free: 84.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006099/2.882, allocations: 224.1 kB / 0.7206 GB, free: 84.79 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005902/2.888, allocations: 2.568 MB / 0.7231 GB, free: 84.45 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.628e-05/2.888, allocations: 21.16 kB / 0.7231 GB, free: 84.45 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.395e-05/2.888, allocations: 5.938 kB / 0.7231 GB, free: 84.45 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-05/2.888, allocations: 11.59 kB / 0.7231 GB, free: 84.45 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02417/2.912, allocations: 5.797 MB / 0.7288 GB, free: 83.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.87e-05/2.912, allocations: 0 / 0.7288 GB, free: 83.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00304/2.915, allocations: 318.2 kB / 0.7291 GB, free: 83.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001467/2.917, allocations: 316.1 kB / 0.7294 GB, free: 83.61 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004931/2.917, allocations: 15.12 kB / 0.7294 GB, free: 83.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008379/2.926, allocations: 5.971 MB / 0.7352 GB, free: 79.77 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-05/2.926, allocations: 3.312 kB / 0.7352 GB, free: 79.77 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008997/2.935, allocations: 3.927 MB / 0.7391 GB, free: 78.28 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01346/2.948, allocations: 8.081 MB / 0.747 GB, free: 74.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002162/2.951, allocations: 0.4934 MB / 0.7474 GB, free: 73.85 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001215/2.952, allocations: 11.08 kB / 0.7475 GB, free: 73.85 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002009/2.954, allocations: 47.69 kB / 0.7475 GB, free: 73.85 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003158/2.954, allocations: 108.4 kB / 0.7476 GB, free: 73.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001667/2.954, allocations: 51.62 kB / 0.7477 GB, free: 73.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.003745/2.958, allocations: 1.16 MB / 0.7488 GB, free: 73.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008073/2.966, allocations: 0.6376 MB / 0.7494 GB, free: 73.26 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.001229/2.968, allocations: 351.6 kB / 0.7497 GB, free: 73.16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008086/2.976, allocations: 2.52 MB / 0.7522 GB, free: 72.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.618e-05/2.976, allocations: 1.219 kB / 0.7522 GB, free: 72.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004905/2.981, allocations: 1.41 MB / 0.7536 GB, free: 71.36 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00488/2.986, allocations: 388.9 kB / 0.754 GB, free: 71.26 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02553/3.011, allocations: 5.38 MB / 0.7592 GB, free: 69.25 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009493/3.021, allocations: 2.782 MB / 0.7619 GB, free: 68.16 MB / 442.7 MB Notification: Performance of SimCode: time 2.215e-06/3.021, allocations: 1.375 kB / 0.7619 GB, free: 68.16 MB / 442.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1)