Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001728/0.001728, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.532/1.532, allocations: 226.5 MB / 244.7 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007258/0.0007259, allocations: 92.81 kB / 296.7 MB, free: 6.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002448/0.0002449, allocations: 8 kB / 356.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.2289, allocations: 51.3 MB / 408.1 MB, free: 27.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.008026/0.237, allocations: 10.17 MB / 418.2 MB, free: 17.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005575/0.2426, allocations: 3.558 MB / 421.8 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001577/0.2442, allocations: 59.69 kB / 421.8 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001776/0.246, allocations: 0.6601 MB / 422.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002247/0.2483, allocations: 0.804 MB / 423.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008512/0.2491, allocations: 314 kB / 423.6 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002471/0.2516, allocations: 3.446 MB / 427.1 MB, free: 8.691 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001974/0.2536, allocations: 2.176 MB / 429.2 MB, free: 6.449 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001242/0.2549, allocations: 1.109 MB / 430.3 MB, free: 5.336 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001351/0.2562, allocations: 1.459 MB / 431.8 MB, free: 3.871 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000264/0.2565, allocations: 164 kB / 432 MB, free: 3.711 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005559/0.2571, allocations: 267.8 kB / 432.2 MB, free: 3.449 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000554/0.2576, allocations: 0.8099 MB / 433 MB, free: 2.637 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009843/0.2586, allocations: 1.413 MB / 434.4 MB, free: 1.211 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003084/0.2617, allocations: 4.114 MB / 438.6 MB, free: 13.09 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2617, allocations: 0 / 438.6 MB, free: 13.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2617, allocations: 0 / 438.6 MB, free: 13.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.939e-05/0.2618, allocations: 4 kB / 438.6 MB, free: 13.08 MB / 314.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.005256/0.2671, allocations: 2.942 MB / 441.5 MB, free: 10.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.2671, allocations: 12.03 kB / 441.5 MB, free: 10.06 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008205/0.268, allocations: 357 kB / 441.9 MB, free: 9.711 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003012/0.271, allocations: 1.843 MB / 443.7 MB, free: 7.812 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001529/0.2712, allocations: 193.1 kB / 443.9 MB, free: 7.621 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003639/0.2715, allocations: 247.9 kB / 444.1 MB, free: 7.379 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005393/0.2769, allocations: 3.406 MB / 447.5 MB, free: 3.867 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.243e-05/0.277, allocations: 11.91 kB / 447.6 MB, free: 3.855 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002284/0.2772, allocations: 103.9 kB / 447.7 MB, free: 3.754 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001189/0.2774, allocations: 120.8 kB / 447.8 MB, free: 3.633 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004663/0.282, allocations: 2.923 MB / 450.7 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01536/0.2974, allocations: 10.92 MB / 461.6 MB, free: 5.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00282/0.3003, allocations: 2.429 MB / 464.1 MB, free: 2.895 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001786/0.3021, allocations: 1.191 MB / 465.2 MB, free: 1.699 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002424/0.3023, allocations: 130.3 kB / 465.4 MB, free: 1.551 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.603e-05/0.3024, allocations: 55.81 kB / 465.4 MB, free: 1.488 MB / 330.7 MB Notification: Performance of pre-optimization done (n=133): time 3.467e-06/0.3024, allocations: 0 / 465.4 MB, free: 1.488 MB / 330.7 MB Notification: Performance of matching and sorting (n=147): time 0.01458/0.317, allocations: 7.28 MB / 472.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/0.3171, allocations: 94.42 kB / 472.8 MB, free: 9.977 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002438/0.3195, allocations: 1.827 MB / 474.6 MB, free: 8.152 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.98e-05/0.3196, allocations: 53.7 kB / 474.7 MB, free: 8.094 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008657/0.3205, allocations: 1.222 MB / 475.9 MB, free: 6.855 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004084/0.3209, allocations: 0.489 MB / 476.4 MB, free: 6.359 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.905e-05/0.321, allocations: 36 kB / 476.4 MB, free: 6.324 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.3212, allocations: 373.9 kB / 476.8 MB, free: 5.953 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001287/0.3225, allocations: 0.8432 MB / 477.6 MB, free: 5.109 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001594/0.3241, allocations: 1.31 MB / 478.9 MB, free: 3.602 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003029/0.3271, allocations: 2.257 MB / 481.2 MB, free: 1.152 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.3271, allocations: 4 kB / 481.2 MB, free: 1.148 MB / 346.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004693/0.3318, allocations: 2.837 MB / 484 MB, free: 14.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003527/0.3322, allocations: 0.5066 MB / 484.5 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-05/0.3322, allocations: 15.94 kB / 484.6 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00151/0.3338, allocations: 0.6746 MB / 485.2 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/0.335, allocations: 355.4 kB / 485.6 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008888/0.3439, allocations: 8.3 MB / 493.9 MB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.3453, allocations: 115.9 kB / 494 MB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/0.3454, allocations: 68 kB / 494.1 MB, free: 3.652 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.254e-06/0.3454, allocations: 4 kB / 494.1 MB, free: 3.648 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004094/0.3495, allocations: 2.623 MB / 496.7 MB, free: 1.012 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.816e-05/0.3495, allocations: 19.94 kB / 496.7 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001427/0.351, allocations: 0.6638 MB / 497.4 MB, free: 324 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.3522, allocations: 351.5 kB / 497.7 MB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008723/0.3609, allocations: 8.308 MB / 0.4942 GB, free: 7.258 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/0.3621, allocations: 99.89 kB / 0.4943 GB, free: 7.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.3622, allocations: 68.19 kB / 0.4943 GB, free: 7.094 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (181): * Single equations (assignments): 177 * 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.001693/0.3639, allocations: 0.9306 MB / 0.4952 GB, free: 6.152 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000331/0.3643, allocations: 205.4 kB / 0.4954 GB, free: 5.949 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004186/0.3684, allocations: 2.551 MB / 0.4979 GB, free: 3.375 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-05/0.3685, allocations: 16 kB / 0.4979 GB, free: 3.359 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.3685, allocations: 0 / 0.4979 GB, free: 3.359 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.3685, allocations: 7.969 kB / 0.4979 GB, free: 3.352 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1615/0.53, allocations: 5.438 MB / 0.5033 GB, free: 88.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.5301, allocations: 0 / 0.5033 GB, free: 88.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009149/0.531, allocations: 230.4 kB / 0.5035 GB, free: 88.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001682/0.5327, allocations: 0.6882 MB / 0.5041 GB, free: 88.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.377e-05/0.5328, allocations: 39.97 kB / 0.5042 GB, free: 88.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008664/0.5415, allocations: 9.763 MB / 0.5137 GB, free: 82.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.5415, allocations: 3.969 kB / 0.5137 GB, free: 82.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004804/0.5463, allocations: 3.757 MB / 0.5174 GB, free: 80.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007515/0.5471, allocations: 475.3 kB / 0.5178 GB, free: 80.44 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002251/0.5473, allocations: 27.5 kB / 0.5179 GB, free: 80.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009029/0.5482, allocations: 104.9 kB / 0.518 GB, free: 80.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002364/0.5485, allocations: 119.9 kB / 0.5181 GB, free: 80.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.209e-05/0.5486, allocations: 42.16 kB / 0.5181 GB, free: 80.37 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001512/0.5501, allocations: 1.249 MB / 0.5193 GB, free: 79.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5501, allocations: 0 / 0.5193 GB, free: 79.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002431/0.5525, allocations: 1.003 MB / 0.5203 GB, free: 79.81 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * 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.0003197/0.5529, allocations: 195.6 kB / 0.5205 GB, free: 79.69 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004842/0.5577, allocations: 4.488 MB / 0.5249 GB, free: 75.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.5577, allocations: 2.281 kB / 0.5249 GB, free: 75.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001773/0.5595, allocations: 1.728 MB / 0.5266 GB, free: 73.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00272/0.5622, allocations: 0.5921 MB / 0.5272 GB, free: 73.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007076/0.5693, allocations: 6.485 MB / 0.5335 GB, free: 66.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001271/0.5706, allocations: 2.071 MB / 0.5355 GB, free: 64.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004503/0.5711, allocations: 143.4 kB / 0.5357 GB, free: 64.68 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.5711, allocations: 0 / 0.5357 GB, free: 64.68 MB / 378.7 MB Notification: Performance of Templates: time 0.06897/0.6401, allocations: 86.48 MB / 0.6201 GB, free: 10.19 MB / 410.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Braking/SMPM_Braking.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches