Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") [: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.2+maint.om/package.mo): time 0.001098/0.001098, allocations: 187.1 kB / 8.132 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.136/1.136, allocations: 194.2 MB / 202.8 MB, free: 8.707 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001805/0.001805, allocations: 119.7 kB / 247.7 MB, free: 6.387 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.825e-06/7.864e-06, allocations: 4 kB / 297.6 MB, free: 7.961 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07126/0.07128, allocations: 44.48 MB / 342.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2272/0.2985, allocations: 108.8 MB / 450.8 MB, free: 3.098 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002696/0.2989, allocations: 86.89 kB / 450.9 MB, free: 3.055 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.3293/0.6281, allocations: 75.64 MB / 0.5142 GB, free: 50.02 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001995/0.6284, allocations: 77.06 kB / 0.5143 GB, free: 50.01 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 817 * Number of variables: 817 Notification: Performance of Generate backend data structure: time 0.006769/0.6352, allocations: 3.208 MB / 0.5174 GB, free: 48.92 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.6352, allocations: 6.938 kB / 0.5174 GB, free: 48.92 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003042/0.6383, allocations: 0.6044 MB / 0.518 GB, free: 48.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006853/0.6451, allocations: 3.126 MB / 0.5211 GB, free: 48.2 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001089/0.6453, allocations: 106.5 kB / 0.5212 GB, free: 48.2 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005228/0.6458, allocations: 181.4 kB / 0.5214 GB, free: 48.2 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005749/0.6516, allocations: 3.13 MB / 0.5244 GB, free: 48.18 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005332/0.6569, allocations: 3.644 MB / 0.528 GB, free: 47.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.701e-05/0.657, allocations: 3.531 kB / 0.528 GB, free: 47.7 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002733/0.6573, allocations: 3.031 kB / 0.528 GB, free: 47.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.92e-05/0.6574, allocations: 141 kB / 0.5281 GB, free: 47.7 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01749/0.6749, allocations: 13.28 MB / 0.5411 GB, free: 44.34 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.6762, allocations: 1.113 MB / 0.5422 GB, free: 44.33 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001611/0.6778, allocations: 1.328 MB / 0.5435 GB, free: 44.31 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004751/0.6826, allocations: 3.196 MB / 0.5466 GB, free: 43.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/0.6827, allocations: 55.62 kB / 0.5466 GB, free: 43.71 MB / 394.7 MB Notification: Performance of pre-optimization done (n=164): time 4.238e-06/0.6827, allocations: 0 / 0.5466 GB, free: 43.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=168): time 0.007242/0.6899, allocations: 4.895 MB / 0.5514 GB, free: 42.53 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.99e-05/0.69, allocations: 107.5 kB / 0.5515 GB, free: 42.43 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001747/0.6917, allocations: 1.41 MB / 0.5529 GB, free: 42.26 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.941e-05/0.6918, allocations: 29.27 kB / 0.5529 GB, free: 42.23 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003984/0.6922, allocations: 1.148 MB / 0.554 GB, free: 41.54 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003108/0.6925, allocations: 0.5344 MB / 0.5546 GB, free: 41.19 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.938e-05/0.6926, allocations: 3.062 kB / 0.5546 GB, free: 41.19 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.395e-05/0.6927, allocations: 378.8 kB / 0.5549 GB, free: 40.88 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001047/0.6938, allocations: 0.8049 MB / 0.5557 GB, free: 40.88 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001221/0.695, allocations: 1.326 MB / 0.557 GB, free: 40.26 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001444/0.6965, allocations: 1.048 MB / 0.558 GB, free: 40.21 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.6965, allocations: 3.5 kB / 0.558 GB, free: 40.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.004097/0.7006, allocations: 2.77 MB / 0.5607 GB, free: 39.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009748/0.7016, allocations: 6.526 MB / 0.5671 GB, free: 32.94 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.059e-05/0.7016, allocations: 16.81 kB / 0.5671 GB, free: 32.94 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/0.7027, allocations: 0.527 MB / 0.5677 GB, free: 32.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/0.7043, allocations: 409.8 kB / 0.568 GB, free: 32.81 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005559/0.7099, allocations: 6.678 MB / 0.5746 GB, free: 27.87 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001619/0.7116, allocations: 47.39 kB / 0.5746 GB, free: 27.87 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001831/0.7118, allocations: 84.86 kB / 0.5747 GB, free: 27.85 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.853e-06/0.7118, allocations: 3.844 kB / 0.5747 GB, free: 27.85 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003733/0.7155, allocations: 2.536 MB / 0.5772 GB, free: 26.92 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.393e-05/0.7156, allocations: 16 kB / 0.5772 GB, free: 26.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/0.7167, allocations: 0.5258 MB / 0.5777 GB, free: 26.74 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001587/0.7183, allocations: 408.9 kB / 0.5781 GB, free: 26.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00562/0.7239, allocations: 6.673 MB / 0.5846 GB, free: 21.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/0.7257, allocations: 37.75 kB / 0.5846 GB, free: 21.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000208/0.7259, allocations: 81.38 kB / 0.5847 GB, free: 21.76 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 210 * 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: 3 * 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 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0004102/0.7263, allocations: 161.3 kB / 0.5849 GB, free: 21.63 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003227/0.7267, allocations: 205.5 kB / 0.5851 GB, free: 21.53 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004047/0.7307, allocations: 2.619 MB / 0.5876 GB, free: 20.36 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.666e-05/0.7308, allocations: 15.56 kB / 0.5876 GB, free: 20.36 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/0.7308, allocations: 6.953 kB / 0.5876 GB, free: 20.36 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.545e-05/0.7308, allocations: 7.734 kB / 0.5877 GB, free: 20.36 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007761/0.7386, allocations: 5.395 MB / 0.5929 GB, free: 17.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/0.7386, allocations: 9 kB / 0.5929 GB, free: 17.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/0.7398, allocations: 208.5 kB / 0.5931 GB, free: 17.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001522/0.7413, allocations: 0.6552 MB / 0.5938 GB, free: 17.66 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001065/0.7414, allocations: 9.734 kB / 0.5938 GB, free: 17.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00918/0.7506, allocations: 10.45 MB / 0.604 GB, free: 9.535 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/0.7506, allocations: 2.656 kB / 0.604 GB, free: 9.535 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006015/0.7567, allocations: 4.06 MB / 0.608 GB, free: 7.512 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001176/0.7579, allocations: 474.5 kB / 0.6084 GB, free: 7.203 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005617/0.7584, allocations: 12.97 kB / 0.6084 GB, free: 7.195 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001484/0.7599, allocations: 52.38 kB / 0.6085 GB, free: 7.191 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002497/0.7602, allocations: 89.42 kB / 0.6086 GB, free: 7.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/0.7603, allocations: 42.47 kB / 0.6086 GB, free: 7.168 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002247/0.7626, allocations: 1.06 MB / 0.6096 GB, free: 6.727 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004702/0.7673, allocations: 0.9944 MB / 0.6106 GB, free: 6.703 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 112 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.00074/0.7681, allocations: 421.7 kB / 0.611 GB, free: 6.543 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006542/0.7746, allocations: 4.22 MB / 0.6151 GB, free: 4.422 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.7747, allocations: 0.625 kB / 0.6151 GB, free: 4.422 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002907/0.7776, allocations: 1.702 MB / 0.6168 GB, free: 3.457 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003097/0.7807, allocations: 479.9 kB / 0.6172 GB, free: 3.336 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/0.7919, allocations: 4.861 MB / 0.622 GB, free: 1.367 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002153/0.7941, allocations: 2.491 MB / 0.6244 GB, free: 304 kB / 394.7 MB Notification: Performance of SimCode: time 8.91e-07/0.7941, allocations: 0 / 0.6244 GB, free: 304 kB / 394.7 MB Notification: Performance of Templates: time 0.1777/0.9718, allocations: 45.26 MB / 0.6686 GB, free: 120 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe 2>&1)