Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 176.1 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 223.3 MB / 241.4 MB, free: 11.71 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009342/0.0009342, allocations: 93.81 kB / 292.6 MB, free: 10.8 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003327/0.0003328, allocations: 12 kB / 352.4 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2655, allocations: 50.39 MB / 402.7 MB, free: 32.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1318/0.3973, allocations: 110.6 MB / 0.5013 GB, free: 1.719 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002937/0.3977, allocations: 91.95 kB / 0.5014 GB, free: 1.629 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3113/0.7089, allocations: 55.15 MB / 0.5553 GB, free: 60.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.709, allocations: 4 kB / 0.5553 GB, free: 60.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002751/0.7092, allocations: 71.94 kB / 0.5553 GB, free: 60.41 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: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.007703/0.717, allocations: 2.954 MB / 0.5582 GB, free: 57.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.717, allocations: 8.031 kB / 0.5582 GB, free: 57.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001355/0.7184, allocations: 357 kB / 0.5586 GB, free: 57.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003977/0.7224, allocations: 2.014 MB / 0.5605 GB, free: 54.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001333/0.7225, allocations: 189.3 kB / 0.5607 GB, free: 54.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006405/0.7232, allocations: 252.3 kB / 0.5609 GB, free: 54.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005766/0.7289, allocations: 3.397 MB / 0.5643 GB, free: 50.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.659e-05/0.729, allocations: 16.03 kB / 0.5643 GB, free: 50.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00029/0.7293, allocations: 111.9 kB / 0.5644 GB, free: 50.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-05/0.7294, allocations: 112.8 kB / 0.5645 GB, free: 50.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004308/0.7338, allocations: 2.771 MB / 0.5672 GB, free: 47.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01577/0.7495, allocations: 10.92 MB / 0.5779 GB, free: 36.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002461/0.7521, allocations: 2.472 MB / 0.5803 GB, free: 34.08 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001299/0.7534, allocations: 1.078 MB / 0.5813 GB, free: 33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002608/0.7537, allocations: 142.4 kB / 0.5815 GB, free: 32.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.382e-05/0.7537, allocations: 47.86 kB / 0.5815 GB, free: 32.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 3.376e-06/0.7537, allocations: 4 kB / 0.5815 GB, free: 32.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.01282/0.7665, allocations: 7.314 MB / 0.5887 GB, free: 25.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.7666, allocations: 94.42 kB / 0.5888 GB, free: 25.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002437/0.769, allocations: 1.791 MB / 0.5905 GB, free: 23.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001222/0.7692, allocations: 49.7 kB / 0.5905 GB, free: 23.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006128/0.7698, allocations: 1.222 MB / 0.5917 GB, free: 22.15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003255/0.7701, allocations: 0.4967 MB / 0.5922 GB, free: 21.65 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.73e-05/0.7702, allocations: 32 kB / 0.5923 GB, free: 21.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.123e-05/0.7703, allocations: 377.8 kB / 0.5926 GB, free: 21.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.7715, allocations: 0.851 MB / 0.5934 GB, free: 20.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001299/0.7728, allocations: 1.31 MB / 0.5947 GB, free: 18.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002519/0.7753, allocations: 2.264 MB / 0.5969 GB, free: 16.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.359e-05/0.7753, allocations: 4 kB / 0.5969 GB, free: 16.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004088/0.7794, allocations: 2.856 MB / 0.5997 GB, free: 13.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002886/0.7797, allocations: 0.5074 MB / 0.6002 GB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.908e-05/0.7798, allocations: 12 kB / 0.6002 GB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001414/0.7812, allocations: 0.6629 MB / 0.6009 GB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/0.7825, allocations: 375.4 kB / 0.6012 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007064/0.7896, allocations: 8.301 MB / 0.6094 GB, free: 3.094 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001471/0.791, allocations: 111.9 kB / 0.6095 GB, free: 2.984 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001565/0.7912, allocations: 75.92 kB / 0.6095 GB, free: 2.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.675e-06/0.7912, allocations: 8.062 kB / 0.6095 GB, free: 2.902 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003515/0.7947, allocations: 2.635 MB / 0.6121 GB, free: 260 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.612e-05/0.7948, allocations: 20.03 kB / 0.6121 GB, free: 240 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00141/0.7962, allocations: 0.6671 MB / 0.6128 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.7975, allocations: 367.6 kB / 0.6131 GB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009333/0.8068, allocations: 8.294 MB / 0.6212 GB, free: 6.504 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001675/0.8085, allocations: 107.9 kB / 0.6213 GB, free: 6.398 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002854/0.8088, allocations: 71.98 kB / 0.6214 GB, free: 6.328 MB / 394.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 () * Number of clocked 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.001952/0.8108, allocations: 0.9337 MB / 0.6223 GB, free: 5.383 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005342/0.8113, allocations: 201.6 kB / 0.6225 GB, free: 5.184 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004691/0.816, allocations: 2.613 MB / 0.6251 GB, free: 2.543 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-05/0.8161, allocations: 12 kB / 0.6251 GB, free: 2.531 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.8161, allocations: 4 kB / 0.6251 GB, free: 2.527 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.634e-05/0.8161, allocations: 8.094 kB / 0.6251 GB, free: 2.52 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009581/0.8257, allocations: 5.414 MB / 0.6304 GB, free: 13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.8257, allocations: 0 / 0.6304 GB, free: 13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009719/0.8267, allocations: 231.7 kB / 0.6306 GB, free: 12.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001633/0.8284, allocations: 0.6943 MB / 0.6313 GB, free: 12.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001146/0.8285, allocations: 39.92 kB / 0.6313 GB, free: 12.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01062/0.8391, allocations: 9.79 MB / 0.6409 GB, free: 1.699 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/0.8392, allocations: 4.031 kB / 0.6409 GB, free: 1.695 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006514/0.8457, allocations: 3.794 MB / 0.6446 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001192/0.8469, allocations: 478.5 kB / 0.645 GB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005169/0.8474, allocations: 32 kB / 0.6451 GB, free: 13.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.8487, allocations: 96.08 kB / 0.6452 GB, free: 13.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003337/0.849, allocations: 125.1 kB / 0.6453 GB, free: 13.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001138/0.8492, allocations: 43.94 kB / 0.6453 GB, free: 13.06 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002433/0.8516, allocations: 1.225 MB / 0.6465 GB, free: 11.85 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.8516, allocations: 0 / 0.6465 GB, free: 11.85 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004288/0.8559, allocations: 1.043 MB / 0.6475 GB, free: 10.8 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 () * Number of clocked 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.0007859/0.8567, allocations: 427.8 kB / 0.6479 GB, free: 10.39 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007008/0.8637, allocations: 4.528 MB / 0.6524 GB, free: 5.742 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.315e-06/0.8638, allocations: 0 / 0.6524 GB, free: 5.742 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002613/0.8664, allocations: 1.749 MB / 0.6541 GB, free: 3.941 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003904/0.8703, allocations: 0.5766 MB / 0.6546 GB, free: 3.375 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.189/1.059, allocations: 6.484 MB / 0.661 GB, free: 101.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001511/1.061, allocations: 2.099 MB / 0.663 GB, free: 100.5 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001897/1.063, allocations: 0.5939 MB / 0.6636 GB, free: 100.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003117/1.063, allocations: 136.9 kB / 0.6637 GB, free: 100.5 MB / 426.7 MB Notification: Performance of SimCode: time 7.81e-07/1.063, allocations: 0 / 0.6637 GB, free: 100.5 MB / 426.7 MB Notification: Performance of Templates: time 0.05619/1.119, allocations: 42.04 MB / 0.7048 GB, free: 89.76 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Braking/SMPM_Braking.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches