Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.3+maint.om/package.mo): time 0.001061/0.001061, allocations: 179.1 kB / 8.479 MB, free: 1.867 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.067/1.067, allocations: 205.2 MB / 214.1 MB, free: 5.078 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.0008496/0.0008497, allocations: 82.34 kB / 262.1 MB, free: 5.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.19e-06/5.21e-06, allocations: 0 / 315 MB, free: 41.45 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06429/0.06431, allocations: 47.57 MB / 362.6 MB, free: 9.926 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2249/0.2893, allocations: 109.3 MB / 471.9 MB, free: 15.89 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002078/0.2895, allocations: 89.27 kB / 472 MB, free: 15.85 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.137/0.4265, allocations: 54.12 MB / 0.5138 GB, free: 0.875 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001719/0.4267, allocations: 71.88 kB / 0.5138 GB, free: 0.8047 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.004514/0.4312, allocations: 2.633 MB / 0.5164 GB, free: 14.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.4313, allocations: 8.031 kB / 0.5164 GB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008209/0.4321, allocations: 364 kB / 0.5168 GB, free: 13.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003345/0.4354, allocations: 1.948 MB / 0.5187 GB, free: 11.74 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.493e-05/0.4355, allocations: 84 kB / 0.5187 GB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003185/0.4359, allocations: 147.9 kB / 0.5189 GB, free: 11.51 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004092/0.44, allocations: 2.611 MB / 0.5214 GB, free: 8.895 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004505/0.4445, allocations: 3.011 MB / 0.5244 GB, free: 5.715 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.444e-05/0.4446, allocations: 7.906 kB / 0.5244 GB, free: 5.707 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002004/0.4448, allocations: 4 kB / 0.5244 GB, free: 5.703 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.917e-05/0.4449, allocations: 116.8 kB / 0.5245 GB, free: 5.586 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01467/0.4595, allocations: 10.48 MB / 0.5347 GB, free: 10.83 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.461, allocations: 1.04 MB / 0.5357 GB, free: 9.785 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00147/0.4625, allocations: 1.098 MB / 0.5368 GB, free: 8.688 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000297/0.4628, allocations: 138.3 kB / 0.537 GB, free: 8.531 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.4628, allocations: 55.88 kB / 0.537 GB, free: 8.469 MB / 394.7 MB Notification: Performance of pre-optimization done (n=136): time 3.126e-06/0.4628, allocations: 0 / 0.537 GB, free: 8.469 MB / 394.7 MB Notification: Performance of matching and sorting (n=150): time 0.008745/0.4716, allocations: 5.035 MB / 0.5419 GB, free: 3.375 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.306e-05/0.4716, allocations: 90.42 kB / 0.542 GB, free: 3.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001872/0.4735, allocations: 1.338 MB / 0.5433 GB, free: 1.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.871e-05/0.4736, allocations: 25.7 kB / 0.5433 GB, free: 1.898 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005455/0.4742, allocations: 0.9591 MB / 0.5443 GB, free: 0.918 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003773/0.4746, allocations: 488.6 kB / 0.5447 GB, free: 444 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.213e-05/0.4747, allocations: 0 / 0.5447 GB, free: 444 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.4748, allocations: 377.9 kB / 0.5451 GB, free: 60 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/0.476, allocations: 0.82 MB / 0.5459 GB, free: 15.24 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001374/0.4774, allocations: 1.259 MB / 0.5471 GB, free: 13.79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/0.4788, allocations: 1.013 MB / 0.5481 GB, free: 12.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.4788, allocations: 4 kB / 0.5481 GB, free: 12.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004083/0.4829, allocations: 2.671 MB / 0.5507 GB, free: 10.08 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001929/0.4848, allocations: 5.519 MB / 0.5561 GB, free: 4.023 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.78e-05/0.4848, allocations: 19.89 kB / 0.5561 GB, free: 4.004 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001613/0.4865, allocations: 0.6785 MB / 0.5568 GB, free: 3.312 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001528/0.488, allocations: 367.4 kB / 0.5572 GB, free: 2.953 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008051/0.4961, allocations: 7.503 MB / 0.5645 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001526/0.4976, allocations: 55.84 kB / 0.5645 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001499/0.4978, allocations: 76.06 kB / 0.5646 GB, free: 10.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.584e-06/0.4978, allocations: 4 kB / 0.5646 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003792/0.5016, allocations: 2.457 MB / 0.567 GB, free: 8.492 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.5016, allocations: 15.98 kB / 0.567 GB, free: 8.477 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001483/0.5031, allocations: 0.6792 MB / 0.5677 GB, free: 7.785 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00143/0.5046, allocations: 355.4 kB / 0.568 GB, free: 7.438 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1638/0.6684, allocations: 7.499 MB / 0.5754 GB, free: 75.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001638/0.67, allocations: 53.72 kB / 0.5754 GB, free: 75.19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/0.6702, allocations: 68.59 kB / 0.5755 GB, free: 75.19 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (183): * Single equations (assignments): 179 * 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 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0003633/0.6705, allocations: 155.5 kB / 0.5756 GB, free: 75.08 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002741/0.6708, allocations: 187.7 kB / 0.5758 GB, free: 75.08 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003694/0.6745, allocations: 2.465 MB / 0.5782 GB, free: 74.98 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.6746, allocations: 17.44 kB / 0.5782 GB, free: 74.98 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.6746, allocations: 0 / 0.5782 GB, free: 74.98 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.283e-05/0.6746, allocations: 10.73 kB / 0.5782 GB, free: 74.98 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006822/0.6814, allocations: 4.917 MB / 0.583 GB, free: 74.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.6814, allocations: 3.031 kB / 0.583 GB, free: 74.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.6825, allocations: 227.7 kB / 0.5833 GB, free: 74.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001517/0.684, allocations: 0.6977 MB / 0.5839 GB, free: 74.51 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.381e-05/0.6841, allocations: 12.58 kB / 0.5839 GB, free: 74.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007205/0.6913, allocations: 8.955 MB / 0.5927 GB, free: 69.72 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.6914, allocations: 7.25 kB / 0.5927 GB, free: 69.72 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004531/0.6959, allocations: 3.854 MB / 0.5965 GB, free: 69.26 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007961/0.6967, allocations: 458.6 kB / 0.5969 GB, free: 69.13 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002944/0.697, allocations: 7.125 kB / 0.5969 GB, free: 69.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009847/0.698, allocations: 64.94 kB / 0.597 GB, free: 69.13 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001934/0.6982, allocations: 93.33 kB / 0.5971 GB, free: 69.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.624e-05/0.6983, allocations: 39.25 kB / 0.5971 GB, free: 69.13 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001252/0.6996, allocations: 1.007 MB / 0.5981 GB, free: 69.02 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002619/0.7022, allocations: 0.9016 MB / 0.599 GB, free: 69.02 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],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 (113): * Single equations (assignments): 109 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005651/0.7028, allocations: 388.8 kB / 0.5993 GB, free: 68.91 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004589/0.7074, allocations: 4.193 MB / 0.6034 GB, free: 68.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.7074, allocations: 0 / 0.6034 GB, free: 68.05 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001746/0.7091, allocations: 1.565 MB / 0.605 GB, free: 67.64 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001978/0.7111, allocations: 472 kB / 0.6054 GB, free: 67.61 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009513/0.7207, allocations: 4.495 MB / 0.6098 GB, free: 66.68 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002126/0.7228, allocations: 2.243 MB / 0.612 GB, free: 65.92 MB / 426.7 MB Notification: Performance of SimCode: time 8.01e-07/0.7228, allocations: 3.75 kB / 0.612 GB, free: 65.92 MB / 426.7 MB Notification: Performance of Templates: time 0.05833/0.7812, allocations: 42.71 MB / 0.6537 GB, free: 63.17 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_Braking/SMPM_Braking.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches