Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",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 trunk/package.mo): time 0.001059/0.001059, allocations: 202.3 kB / 8.539 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.115/1.115, allocations: 225.5 MB / 234.4 MB, free: 3.422 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008481/0.0008481, allocations: 88.22 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08932/0.09019, allocations: 56.91 MB / 343.2 MB, free: 8.668 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08307/0.1733, allocations: 51.47 MB / 394.7 MB, free: 5.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2344/0.4077, allocations: 114.5 MB / 0.4973 GB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002/0.408, allocations: 89.14 kB / 0.4974 GB, free: 11.21 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.1556/0.5635, allocations: 62.23 MB / 0.5582 GB, free: 1.742 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.5636, allocations: 8 kB / 0.5582 GB, free: 1.734 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001383/0.565, allocations: 427.3 kB / 0.5586 GB, free: 1.312 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004286/0.5693, allocations: 2.235 MB / 0.5608 GB, free: 15.02 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.363e-05/0.5694, allocations: 104 kB / 0.5609 GB, free: 14.92 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003886/0.5698, allocations: 175.8 kB / 0.561 GB, free: 14.75 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00485/0.5747, allocations: 2.851 MB / 0.5638 GB, free: 11.89 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005412/0.5801, allocations: 3.356 MB / 0.5671 GB, free: 8.391 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.348e-05/0.5802, allocations: 4 kB / 0.5671 GB, free: 8.387 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00024/0.5805, allocations: 3.906 kB / 0.5671 GB, free: 8.383 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001317/0.5806, allocations: 145.7 kB / 0.5672 GB, free: 8.238 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1549/0.7355, allocations: 11.65 MB / 0.5786 GB, free: 64.01 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001459/0.737, allocations: 1.217 MB / 0.5798 GB, free: 63.99 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001195/0.7382, allocations: 1.061 MB / 0.5808 GB, free: 63.98 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002809/0.7385, allocations: 225.2 kB / 0.5811 GB, free: 63.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.978e-05/0.7385, allocations: 48.88 kB / 0.5811 GB, free: 63.76 MB / 442.7 MB Notification: Performance of pre-optimization done (n=149): time 3.126e-06/0.7385, allocations: 0 / 0.5811 GB, free: 63.76 MB / 442.7 MB Notification: Performance of matching and sorting (n=171): time 0.009176/0.7477, allocations: 5.958 MB / 0.5869 GB, free: 63.09 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.681e-05/0.7478, allocations: 70.5 kB / 0.587 GB, free: 63.03 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00192/0.7497, allocations: 1.512 MB / 0.5885 GB, free: 62.82 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.509e-05/0.7498, allocations: 29.2 kB / 0.5885 GB, free: 62.79 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004826/0.7503, allocations: 1.138 MB / 0.5896 GB, free: 62.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003529/0.7507, allocations: 0.5605 MB / 0.5902 GB, free: 61.98 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.166e-05/0.7508, allocations: 0 / 0.5902 GB, free: 61.98 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.7509, allocations: 397.6 kB / 0.5905 GB, free: 61.68 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001166/0.7521, allocations: 0.909 MB / 0.5914 GB, free: 61.67 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001222/0.7533, allocations: 1.461 MB / 0.5928 GB, free: 61.03 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001368/0.7547, allocations: 1.181 MB / 0.594 GB, free: 61.01 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/0.7547, allocations: 3.844 kB / 0.594 GB, free: 61.01 MB / 442.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.004087/0.7588, allocations: 3.025 MB / 0.597 GB, free: 60.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.7588, allocations: 7.875 kB / 0.597 GB, free: 60.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.758e-05/0.7588, allocations: 18.53 kB / 0.597 GB, free: 60.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001235/0.7601, allocations: 0.5422 MB / 0.5975 GB, free: 60.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001725/0.7618, allocations: 469 kB / 0.598 GB, free: 60.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00531/0.7671, allocations: 5.726 MB / 0.6036 GB, free: 58.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001532/0.7687, allocations: 75.02 kB / 0.6036 GB, free: 58.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001576/0.7688, allocations: 85.88 kB / 0.6037 GB, free: 58.24 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (234): * Single equations (assignments): 231 * 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 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002734/0.7691, allocations: 168.8 kB / 0.6039 GB, free: 58.12 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002775/0.7694, allocations: 205.8 kB / 0.6041 GB, free: 58.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004038/0.7734, allocations: 2.745 MB / 0.6067 GB, free: 57.87 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.7735, allocations: 24.22 kB / 0.6068 GB, free: 57.86 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.7735, allocations: 5.406 kB / 0.6068 GB, free: 57.86 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.59e-05/0.7735, allocations: 14.39 kB / 0.6068 GB, free: 57.86 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007907/0.7814, allocations: 5.625 MB / 0.6123 GB, free: 57.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.7814, allocations: 8.438 kB / 0.6123 GB, free: 57.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/0.7827, allocations: 294.3 kB / 0.6126 GB, free: 57.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001401/0.7841, allocations: 0.5734 MB / 0.6131 GB, free: 57.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000116/0.7842, allocations: 15.36 kB / 0.6131 GB, free: 57.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006385/0.7906, allocations: 7.317 MB / 0.6203 GB, free: 53.57 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.7906, allocations: 11.09 kB / 0.6203 GB, free: 53.57 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005215/0.7959, allocations: 4.371 MB / 0.6246 GB, free: 52.83 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006366/0.8022, allocations: 6.202 MB / 0.6306 GB, free: 50.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009884/0.8032, allocations: 0.4926 MB / 0.6311 GB, free: 49.79 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003116/0.8036, allocations: 7.812 kB / 0.6311 GB, free: 49.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.8047, allocations: 63.28 kB / 0.6312 GB, free: 49.79 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001738/0.8049, allocations: 93.55 kB / 0.6313 GB, free: 49.78 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001243/0.805, allocations: 50.11 kB / 0.6313 GB, free: 49.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.00159/0.8066, allocations: 1.127 MB / 0.6324 GB, free: 49.28 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002562/0.8091, allocations: 0.5643 MB / 0.633 GB, free: 49.24 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 142 * 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 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006066/0.8098, allocations: 393.3 kB / 0.6333 GB, free: 49.13 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003609/0.8134, allocations: 2.651 MB / 0.6359 GB, free: 48.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.8134, allocations: 0 / 0.6359 GB, free: 48.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002002/0.8154, allocations: 1.54 MB / 0.6374 GB, free: 47.38 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001861/0.8173, allocations: 415.4 kB / 0.6378 GB, free: 47.28 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008231/0.8255, allocations: 4.864 MB / 0.6426 GB, free: 45.43 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002468/0.828, allocations: 2.493 MB / 0.645 GB, free: 44.4 MB / 442.7 MB Notification: Performance of SimCode: time 5.91e-07/0.828, allocations: 0 / 0.645 GB, free: 44.4 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1)