Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") [: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.1+maint.om/package.mo): time 0.002657/0.002656, allocations: 181.6 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.274/1.274, allocations: 170.6 MB / 178.4 MB, free: 15.44 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001666/0.001666, allocations: 111.9 kB / 217.7 MB, free: 8.207 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.08e-05/1.082e-05, allocations: 4 kB / 261.8 MB, free: 26.63 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08858/0.08861, allocations: 38.76 MB / 300.5 MB, free: 3.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.288/0.3766, allocations: 98.92 MB / 399.4 MB, free: 1.992 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/0.3769, allocations: 81.89 kB / 399.5 MB, free: 1.949 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.1408/0.5178, allocations: 50.29 MB / 449.8 MB, free: 5.348 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.00031/0.5181, allocations: 67.94 kB / 449.9 MB, free: 5.281 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.01022/0.5284, allocations: 2.539 MB / 452.4 MB, free: 2.688 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.076e-05/0.5285, allocations: 12.03 kB / 452.4 MB, free: 2.676 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002174/0.5307, allocations: 348.1 kB / 452.8 MB, free: 2.332 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006435/0.5371, allocations: 1.747 MB / 454.5 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001709/0.5373, allocations: 80 kB / 454.6 MB, free: 460 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008447/0.5382, allocations: 155.8 kB / 454.7 MB, free: 304 kB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008911/0.5471, allocations: 2.388 MB / 457.1 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009005/0.5562, allocations: 2.86 MB / 460 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001108/0.5563, allocations: 7.984 kB / 460 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003422/0.5567, allocations: 7.906 kB / 460 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002176/0.5569, allocations: 116.9 kB / 460.1 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02854/0.5855, allocations: 9.868 MB / 470 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1214/0.7069, allocations: 0.8844 MB / 470.9 MB, free: 118.3 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001979/0.709, allocations: 0.774 MB / 471.6 MB, free: 118.3 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004166/0.7094, allocations: 135.1 kB / 471.8 MB, free: 118.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.7095, allocations: 44.12 kB / 471.8 MB, free: 118.1 MB / 346.7 MB Notification: Performance of pre-optimization done (n=105): time 5.01e-06/0.7095, allocations: 2.906 kB / 471.8 MB, free: 118.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=135): time 0.0154/0.7249, allocations: 5.15 MB / 477 MB, free: 117.6 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.126e-05/0.725, allocations: 63.56 kB / 477 MB, free: 117.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002641/0.7276, allocations: 1.177 MB / 478.2 MB, free: 117.4 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001882/0.7278, allocations: 25.7 kB / 478.2 MB, free: 117.4 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007084/0.7286, allocations: 1.023 MB / 479.3 MB, free: 116.9 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005348/0.7291, allocations: 445.3 kB / 479.7 MB, free: 116.6 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/0.7293, allocations: 2.297 kB / 479.7 MB, free: 116.6 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.7294, allocations: 376.2 kB / 480.1 MB, free: 116.3 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001726/0.7312, allocations: 0.7656 MB / 480.8 MB, free: 116.3 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002045/0.7332, allocations: 1.28 MB / 482.1 MB, free: 115.7 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002129/0.7354, allocations: 1.009 MB / 483.1 MB, free: 115.7 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.234e-05/0.7354, allocations: 3.281 kB / 483.1 MB, free: 115.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=215) (initialization): time 0.005627/0.741, allocations: 2.364 MB / 485.5 MB, free: 115.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/0.7411, allocations: 7.25 kB / 485.5 MB, free: 115.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.298e-05/0.7412, allocations: 14.88 kB / 485.5 MB, free: 115.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.7422, allocations: 242.5 kB / 485.7 MB, free: 115.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002941/0.7451, allocations: 430.7 kB / 486.2 MB, free: 115.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002909/0.7481, allocations: 2.837 MB / 489 MB, free: 113.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002407/0.7505, allocations: 72.17 kB / 489.1 MB, free: 113.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002826/0.7508, allocations: 76 kB / 489.1 MB, free: 113.1 MB / 346.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 (210): * Single equations (assignments): 206 * 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.000423/0.7512, allocations: 152.8 kB / 489.3 MB, free: 113 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005061/0.7518, allocations: 174.9 kB / 489.5 MB, free: 112.9 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005106/0.7569, allocations: 2.051 MB / 491.5 MB, free: 112.8 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/0.7569, allocations: 13.38 kB / 491.5 MB, free: 112.8 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.757, allocations: 0 / 491.5 MB, free: 112.8 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-05/0.757, allocations: 14.34 kB / 491.5 MB, free: 112.8 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007108/0.7641, allocations: 4.458 MB / 496 MB, free: 112.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.7641, allocations: 3.906 kB / 496 MB, free: 112.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001214/0.7654, allocations: 271.9 kB / 496.3 MB, free: 112.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005064/0.7659, allocations: 204.3 kB / 496.5 MB, free: 112.3 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.888e-05/0.766, allocations: 10.42 kB / 496.5 MB, free: 112.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001726/0.7677, allocations: 2.812 MB / 499.3 MB, free: 109.9 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.7677, allocations: 6.312 kB / 499.3 MB, free: 109.9 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003881/0.7716, allocations: 3.394 MB / 0.4909 GB, free: 109.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009253/0.7726, allocations: 419.9 kB / 0.4913 GB, free: 109.1 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002622/0.7728, allocations: 6.875 kB / 0.4913 GB, free: 109.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008334/0.7737, allocations: 54.33 kB / 0.4914 GB, free: 109.1 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.7738, allocations: 72.41 kB / 0.4914 GB, free: 109.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.422e-05/0.7739, allocations: 33.44 kB / 0.4915 GB, free: 109.1 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.001086/0.775, allocations: 0.8832 MB / 0.4923 GB, free: 109 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001504/0.7765, allocations: 445.4 kB / 0.4928 GB, free: 109 MB / 346.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 (131): * Single equations (assignments): 127 * 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.0004949/0.777, allocations: 374.1 kB / 0.4931 GB, free: 108.9 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002763/0.7798, allocations: 2.327 MB / 0.4954 GB, free: 108.4 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.7798, allocations: 0 / 0.4954 GB, free: 108.4 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.7813, allocations: 1.336 MB / 0.4967 GB, free: 107.7 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001739/0.783, allocations: 360.2 kB / 0.497 GB, free: 107.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006889/0.7899, allocations: 3.822 MB / 0.5008 GB, free: 106.2 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001955/0.7919, allocations: 2.198 MB / 0.5029 GB, free: 105.2 MB / 346.7 MB Notification: Performance of SimCode: time 1.423e-06/0.7919, allocations: 0 / 0.5029 GB, free: 105.2 MB / 346.7 MB Notification: Performance of Templates: time 0.03678/0.8287, allocations: 22.61 MB / 0.525 GB, free: 95.3 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1)