Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",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 3.2.3+maint.om/package.mo): time 0.0009377/0.0009377, allocations: 186.5 kB / 8.478 MB, free: 1.859 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.046/1.046, allocations: 205.2 MB / 214.1 MB, free: 5.496 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008594/0.0008594, allocations: 90.19 kB / 262.1 MB, free: 5.555 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1568/0.1577, allocations: 52.98 MB / 315.1 MB, free: 41.45 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06085/0.2185, allocations: 47.58 MB / 362.6 MB, free: 9.902 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.224/0.4426, allocations: 109.2 MB / 471.8 MB, free: 92 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000186/0.4428, allocations: 88.81 kB / 471.9 MB, free: 44 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.1433/0.5861, allocations: 54.67 MB / 0.5142 GB, free: 0.5312 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.5862, allocations: 8 kB / 0.5142 GB, free: 0.5234 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001262/0.5875, allocations: 348.1 kB / 0.5146 GB, free: 184 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003963/0.5914, allocations: 1.935 MB / 0.5165 GB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.595e-05/0.5915, allocations: 84 kB / 0.5165 GB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003219/0.5919, allocations: 151.9 kB / 0.5167 GB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0039/0.5958, allocations: 2.4 MB / 0.519 GB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004361/0.6001, allocations: 2.868 MB / 0.5218 GB, free: 8.539 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.152e-05/0.6002, allocations: 3.906 kB / 0.5218 GB, free: 8.535 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001964/0.6004, allocations: 4 kB / 0.5218 GB, free: 8.531 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001083/0.6005, allocations: 120.9 kB / 0.5219 GB, free: 8.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01508/0.6156, allocations: 9.997 MB / 0.5317 GB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001331/0.617, allocations: 0.8961 MB / 0.5326 GB, free: 13.18 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001107/0.6181, allocations: 0.7807 MB / 0.5333 GB, free: 12.39 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003226/0.6185, allocations: 223.1 kB / 0.5336 GB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/0.6185, allocations: 47.5 kB / 0.5336 GB, free: 12.09 MB / 394.7 MB Notification: Performance of pre-optimization done (n=107): time 3.938e-06/0.6185, allocations: 0 / 0.5336 GB, free: 12.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=137): time 0.01013/0.6287, allocations: 5.189 MB / 0.5387 GB, free: 6.828 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.262e-05/0.6287, allocations: 68.72 kB / 0.5387 GB, free: 6.75 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002371/0.6311, allocations: 1.308 MB / 0.54 GB, free: 5.438 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.609e-05/0.6312, allocations: 25.7 kB / 0.54 GB, free: 5.406 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005925/0.6318, allocations: 1.02 MB / 0.541 GB, free: 4.371 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003608/0.6322, allocations: 461.2 kB / 0.5415 GB, free: 3.914 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.479e-05/0.6323, allocations: 0 / 0.5415 GB, free: 3.914 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.6325, allocations: 373.9 kB / 0.5418 GB, free: 3.543 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/0.6336, allocations: 0.7732 MB / 0.5426 GB, free: 2.77 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0014/0.635, allocations: 1.288 MB / 0.5438 GB, free: 1.258 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.6366, allocations: 1.009 MB / 0.5448 GB, free: 256 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-05/0.6366, allocations: 7.938 kB / 0.5448 GB, free: 248 kB / 394.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.003972/0.6406, allocations: 2.386 MB / 0.5472 GB, free: 13.83 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.6406, allocations: 4 kB / 0.5472 GB, free: 13.83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.792e-05/0.6406, allocations: 20.03 kB / 0.5472 GB, free: 13.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006485/0.6413, allocations: 243.2 kB / 0.5474 GB, free: 13.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001737/0.643, allocations: 431.3 kB / 0.5478 GB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002534/0.6456, allocations: 2.859 MB / 0.5506 GB, free: 10.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001484/0.6471, allocations: 67.83 kB / 0.5507 GB, free: 9.977 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002118/0.6473, allocations: 71.98 kB / 0.5508 GB, free: 9.906 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003194/0.6476, allocations: 160.4 kB / 0.5509 GB, free: 9.742 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004325/0.6481, allocations: 177.8 kB / 0.5511 GB, free: 9.566 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003603/0.6517, allocations: 2.066 MB / 0.5531 GB, free: 7.469 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/0.6517, allocations: 12 kB / 0.5531 GB, free: 7.457 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/0.6517, allocations: 0 / 0.5531 GB, free: 7.457 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/0.6518, allocations: 7.969 kB / 0.5531 GB, free: 7.449 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008597/0.6604, allocations: 4.544 MB / 0.5576 GB, free: 2.809 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.6604, allocations: 4 kB / 0.5576 GB, free: 2.805 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001316/0.6617, allocations: 279.6 kB / 0.5578 GB, free: 2.531 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005941/0.6623, allocations: 207.5 kB / 0.558 GB, free: 2.316 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/0.6625, allocations: 15.89 kB / 0.558 GB, free: 2.301 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002293/0.6648, allocations: 2.812 MB / 0.5608 GB, free: 15.26 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.6648, allocations: 4 kB / 0.5608 GB, free: 15.25 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004734/0.6695, allocations: 3.432 MB / 0.5641 GB, free: 11.71 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006241/0.6758, allocations: 5.027 MB / 0.5691 GB, free: 6.555 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001123/0.677, allocations: 434.7 kB / 0.5695 GB, free: 6.109 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004616/0.6774, allocations: 4 kB / 0.5695 GB, free: 6.105 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/0.6786, allocations: 59.98 kB / 0.5695 GB, free: 6.047 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/0.6788, allocations: 73.11 kB / 0.5696 GB, free: 5.977 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.6789, allocations: 36 kB / 0.5696 GB, free: 5.941 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001807/0.6807, allocations: 0.9735 MB / 0.5706 GB, free: 4.973 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002475/0.6832, allocations: 480 kB / 0.571 GB, free: 4.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006191/0.6839, allocations: 385.2 kB / 0.5714 GB, free: 4.117 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003526/0.6874, allocations: 2.336 MB / 0.5737 GB, free: 1.719 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.6874, allocations: 0 / 0.5737 GB, free: 1.719 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001912/0.6893, allocations: 1.349 MB / 0.575 GB, free: 320 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1063/0.7957, allocations: 363 kB / 0.5754 GB, free: 159.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007307/0.803, allocations: 3.959 MB / 0.5792 GB, free: 158.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002118/0.8052, allocations: 2.221 MB / 0.5814 GB, free: 157.5 MB / 426.7 MB Notification: Performance of SimCode: time 5.91e-07/0.8052, allocations: 0 / 0.5814 GB, free: 157.5 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1)