Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.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_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",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.0085/0.008501, allocations: 179.5 kB / 7.454 MB, free: 2.523 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.07842/0.07842, allocations: 8.708 MB / 16.57 MB, free: 0.5742 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.445/2.445, allocations: 221.4 MB / 240.5 MB, free: 8.207 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.001658/0.001659, allocations: 100.9 kB / 293.5 MB, free: 5.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2212/0.223, allocations: 58.67 MB / 352.2 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4845/0.7075, allocations: 52.53 MB / 404.7 MB, free: 26.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6804/1.388, allocations: 119.6 MB / 0.512 GB, free: 96 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/1.388, allocations: 71.41 kB / 0.5121 GB, free: 95.96 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: 1052 * Number of variables: 1052 Notification: Performance of Generate backend data structure: time 1.129/2.518, allocations: 165.2 MB / 0.6734 GB, free: 64.23 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.732e-05/2.518, allocations: 10.97 kB / 0.6734 GB, free: 64.23 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01335/2.531, allocations: 0.935 MB / 0.6743 GB, free: 63.99 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02012/2.551, allocations: 3.833 MB / 0.678 GB, free: 63.39 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003967/2.552, allocations: 130.9 kB / 0.6782 GB, free: 63.39 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002687/2.555, allocations: 243.1 kB / 0.6784 GB, free: 63.39 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01345/2.568, allocations: 3.856 MB / 0.6822 GB, free: 63.37 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02196/2.59, allocations: 4.483 MB / 0.6865 GB, free: 62.88 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002187/2.59, allocations: 1.875 kB / 0.6865 GB, free: 62.88 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001158/2.592, allocations: 15.05 kB / 0.6866 GB, free: 62.87 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002096/2.592, allocations: 175.6 kB / 0.6867 GB, free: 62.86 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05417/2.646, allocations: 16.3 MB / 0.7026 GB, free: 59.26 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003239/2.649, allocations: 1.291 MB / 0.7039 GB, free: 59.24 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003772/2.653, allocations: 1.683 MB / 0.7056 GB, free: 59.22 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01646/2.67, allocations: 5.207 MB / 0.7106 GB, free: 58.02 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.697e-05/2.67, allocations: 59.03 kB / 0.7107 GB, free: 57.98 MB / 442.7 MB Notification: Performance of pre-optimization done (n=193): time 8.365e-06/2.67, allocations: 0 / 0.7107 GB, free: 57.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=196): time 0.01801/2.688, allocations: 5.248 MB / 0.7158 GB, free: 56.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.273e-05/2.688, allocations: 72.47 kB / 0.7159 GB, free: 56.61 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008099/2.696, allocations: 1.674 MB / 0.7175 GB, free: 56.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007748/2.697, allocations: 25.7 kB / 0.7175 GB, free: 56.35 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0025/2.7, allocations: 1.471 MB / 0.719 GB, free: 55.47 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00233/2.702, allocations: 0.6381 MB / 0.7196 GB, free: 55.05 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00085/2.703, allocations: 0 / 0.7196 GB, free: 55.05 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005234/2.704, allocations: 410.8 kB / 0.72 GB, free: 54.74 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003151/2.707, allocations: 0.8996 MB / 0.7209 GB, free: 54.73 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003457/2.71, allocations: 1.58 MB / 0.7224 GB, free: 53.93 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00359/2.714, allocations: 1.235 MB / 0.7236 GB, free: 53.91 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.999e-05/2.714, allocations: 7.375 kB / 0.7236 GB, free: 53.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.009394/2.723, allocations: 2.904 MB / 0.7265 GB, free: 53.61 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.476e-05/2.724, allocations: 3.156 kB / 0.7265 GB, free: 53.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000103/2.724, allocations: 24.69 kB / 0.7265 GB, free: 53.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006086/2.724, allocations: 126.7 kB / 0.7266 GB, free: 53.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006558/2.731, allocations: 0.594 MB / 0.7272 GB, free: 53.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003616/2.735, allocations: 1.755 MB / 0.7289 GB, free: 52.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00643/2.741, allocations: 75.39 kB / 0.729 GB, free: 52.31 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001391/2.743, allocations: 96.75 kB / 0.7291 GB, free: 52.31 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 98 * 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 (300): * Single equations (assignments): 298 * 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: 1 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002339/2.745, allocations: 179.8 kB / 0.7292 GB, free: 52.19 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002048/2.747, allocations: 239.1 kB / 0.7295 GB, free: 52.07 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01054/2.758, allocations: 2.659 MB / 0.7321 GB, free: 51.09 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.996e-05/2.758, allocations: 22.91 kB / 0.7321 GB, free: 51.08 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.539e-05/2.758, allocations: 3.938 kB / 0.7321 GB, free: 51.08 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-05/2.758, allocations: 7.734 kB / 0.7321 GB, free: 51.08 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01803/2.776, allocations: 5.939 MB / 0.7379 GB, free: 48.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.962e-05/2.776, allocations: 3.688 kB / 0.7379 GB, free: 48.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001864/2.778, allocations: 359.3 kB / 0.7382 GB, free: 48.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001135/2.779, allocations: 309.7 kB / 0.7385 GB, free: 48.22 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001752/2.779, allocations: 21.39 kB / 0.7386 GB, free: 48.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007999/2.787, allocations: 6.015 MB / 0.7444 GB, free: 43.31 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.167e-05/2.788, allocations: 3.812 kB / 0.7444 GB, free: 43.31 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0102/2.798, allocations: 4.085 MB / 0.7484 GB, free: 41.31 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01768/2.816, allocations: 5.809 MB / 0.7541 GB, free: 38.35 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003911/2.82, allocations: 0.5123 MB / 0.7546 GB, free: 38 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001983/2.822, allocations: 8.734 kB / 0.7546 GB, free: 38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004586/2.826, allocations: 68.69 kB / 0.7547 GB, free: 38 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008417/2.827, allocations: 116.2 kB / 0.7548 GB, free: 37.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002979/2.828, allocations: 58.05 kB / 0.7548 GB, free: 37.96 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.00602/2.834, allocations: 1.228 MB / 0.756 GB, free: 37.43 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007885/2.842, allocations: 0.6739 MB / 0.7567 GB, free: 37.38 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (166): * Single equations (assignments): 163 * 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 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001581/2.843, allocations: 345.4 kB / 0.757 GB, free: 37.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006833/2.85, allocations: 2.438 MB / 0.7594 GB, free: 36.29 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-05/2.85, allocations: 0 / 0.7594 GB, free: 36.29 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003561/2.854, allocations: 1.469 MB / 0.7608 GB, free: 35.58 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004716/2.859, allocations: 420.2 kB / 0.7612 GB, free: 35.47 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02306/2.882, allocations: 5.732 MB / 0.7668 GB, free: 33.12 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008277/2.89, allocations: 2.947 MB / 0.7697 GB, free: 31.58 MB / 442.7 MB Notification: Performance of SimCode: time 3.466e-06/2.89, allocations: 0 / 0.7697 GB, free: 31.58 MB / 442.7 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1)