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.001399/0.001399, allocations: 200 kB / 18.06 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 226.5 MB / 245.3 MB, free: 6.383 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007816/0.0007816, allocations: 96.58 kB / 297.4 MB, free: 6.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002202/0.0002204, allocations: 8 kB / 357.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2011/0.2013, allocations: 51.28 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2748/0.4762, allocations: 111.3 MB / 0.5078 GB, free: 97.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000191/0.4764, allocations: 87.14 kB / 0.5079 GB, free: 97.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1164/0.5929, allocations: 55.29 MB / 0.5619 GB, free: 50.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.5929, allocations: 0 / 0.5619 GB, free: 50.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001565/0.5931, allocations: 75.88 kB / 0.5619 GB, free: 50.52 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.004866/0.598, allocations: 2.954 MB / 0.5648 GB, free: 47.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.598, allocations: 8.031 kB / 0.5648 GB, free: 47.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008714/0.5989, allocations: 365 kB / 0.5652 GB, free: 47.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003126/0.602, allocations: 2.007 MB / 0.5671 GB, free: 45.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/0.6021, allocations: 185.4 kB / 0.5673 GB, free: 44.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003116/0.6025, allocations: 256.2 kB / 0.5676 GB, free: 44.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004662/0.6071, allocations: 3.399 MB / 0.5709 GB, free: 41.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.067e-05/0.6072, allocations: 4.188 kB / 0.5709 GB, free: 41.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002247/0.6074, allocations: 107.9 kB / 0.571 GB, free: 40.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.775e-05/0.6075, allocations: 112.8 kB / 0.5711 GB, free: 40.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00389/0.6114, allocations: 2.775 MB / 0.5738 GB, free: 38.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01338/0.6248, allocations: 10.93 MB / 0.5845 GB, free: 26.83 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002337/0.6272, allocations: 2.474 MB / 0.5869 GB, free: 24.2 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001266/0.6285, allocations: 1.082 MB / 0.5879 GB, free: 23.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002821/0.6288, allocations: 130.4 kB / 0.5881 GB, free: 22.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.6288, allocations: 51.88 kB / 0.5881 GB, free: 22.91 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 3.326e-06/0.6288, allocations: 0 / 0.5881 GB, free: 22.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.01356/0.6424, allocations: 7.317 MB / 0.5953 GB, free: 15.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.6425, allocations: 94.41 kB / 0.5954 GB, free: 15.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002954/0.6454, allocations: 1.788 MB / 0.5971 GB, free: 13.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001272/0.6456, allocations: 57.7 kB / 0.5972 GB, free: 13.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005952/0.6462, allocations: 1.214 MB / 0.5983 GB, free: 12.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003306/0.6465, allocations: 0.4968 MB / 0.5988 GB, free: 11.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/0.6466, allocations: 28 kB / 0.5989 GB, free: 11.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.094e-05/0.6467, allocations: 381.8 kB / 0.5992 GB, free: 11.37 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001165/0.6479, allocations: 0.8549 MB / 0.6001 GB, free: 10.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001327/0.6492, allocations: 1.317 MB / 0.6013 GB, free: 9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002494/0.6517, allocations: 2.26 MB / 0.6035 GB, free: 6.551 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.164e-05/0.6518, allocations: 4 kB / 0.6036 GB, free: 6.547 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004271/0.656, allocations: 2.86 MB / 0.6063 GB, free: 3.664 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003194/0.6564, allocations: 0.4923 MB / 0.6068 GB, free: 2.977 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.128e-05/0.6564, allocations: 16 kB / 0.6068 GB, free: 2.961 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001443/0.6579, allocations: 0.6745 MB / 0.6075 GB, free: 2.273 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/0.6591, allocations: 375.4 kB / 0.6079 GB, free: 1.906 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01359/0.6728, allocations: 8.292 MB / 0.616 GB, free: 9.203 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003387/0.6762, allocations: 111.9 kB / 0.6161 GB, free: 9.094 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006182/0.6769, allocations: 75.98 kB / 0.6161 GB, free: 9.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.6769, allocations: 4 kB / 0.6161 GB, free: 9.016 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008535/0.6855, allocations: 2.638 MB / 0.6187 GB, free: 6.363 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-05/0.6856, allocations: 12.12 kB / 0.6187 GB, free: 6.352 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002868/0.6884, allocations: 0.6828 MB / 0.6194 GB, free: 5.656 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002594/0.6911, allocations: 363.5 kB / 0.6197 GB, free: 5.301 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01601/0.7071, allocations: 8.287 MB / 0.6278 GB, free: 12.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002502/0.7096, allocations: 103.9 kB / 0.6279 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003669/0.71, allocations: 68 kB / 0.628 GB, free: 12.45 MB / 410.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.002553/0.7126, allocations: 0.9341 MB / 0.6289 GB, free: 11.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006994/0.7133, allocations: 205.6 kB / 0.6291 GB, free: 11.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007964/0.7213, allocations: 2.621 MB / 0.6317 GB, free: 8.652 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.699e-05/0.7214, allocations: 12 kB / 0.6317 GB, free: 8.641 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/0.7214, allocations: 4.188 kB / 0.6317 GB, free: 8.637 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.402e-05/0.7214, allocations: 7.969 kB / 0.6317 GB, free: 8.629 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01733/0.7388, allocations: 5.422 MB / 0.637 GB, free: 3.102 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/0.7388, allocations: 0 / 0.637 GB, free: 3.102 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001844/0.7407, allocations: 231.7 kB / 0.6372 GB, free: 2.875 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003303/0.744, allocations: 0.6986 MB / 0.6379 GB, free: 2.164 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000205/0.7442, allocations: 43.92 kB / 0.6379 GB, free: 2.121 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0183/0.7626, allocations: 9.779 MB / 0.6475 GB, free: 7.801 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.06e-05/0.7626, allocations: 7.938 kB / 0.6475 GB, free: 7.793 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009294/0.7719, allocations: 3.805 MB / 0.6512 GB, free: 3.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001719/0.7737, allocations: 470.5 kB / 0.6516 GB, free: 3.449 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006763/0.7744, allocations: 32 kB / 0.6517 GB, free: 3.418 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001894/0.7763, allocations: 95.89 kB / 0.6518 GB, free: 3.324 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004567/0.7768, allocations: 125.1 kB / 0.6519 GB, free: 3.199 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001838/0.777, allocations: 40 kB / 0.6519 GB, free: 3.16 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003535/0.7805, allocations: 1.225 MB / 0.6531 GB, free: 1.945 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7806, allocations: 0 / 0.6531 GB, free: 1.945 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005826/0.7864, allocations: 1.043 MB / 0.6541 GB, free: 0.9023 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.001008/0.7874, allocations: 439.9 kB / 0.6546 GB, free: 488 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01013/0.7976, allocations: 4.513 MB / 0.659 GB, free: 11.84 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.7976, allocations: 0 / 0.659 GB, free: 11.84 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002496/0.8001, allocations: 1.755 MB / 0.6607 GB, free: 10.04 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003503/0.8036, allocations: 0.5919 MB / 0.6613 GB, free: 9.457 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01067/0.8143, allocations: 6.509 MB / 0.6676 GB, free: 2.887 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002145/0.8165, allocations: 2.083 MB / 0.6697 GB, free: 0.7656 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006644/0.8172, allocations: 143.4 kB / 0.6698 GB, free: 0.625 MB / 442.7 MB Notification: Performance of SimCode: time 1.192e-06/0.8172, allocations: 0 / 0.6698 GB, free: 0.625 MB / 442.7 MB Notification: Performance of Templates: time 0.252/1.069, allocations: 87.58 MB / 0.7553 GB, free: 59.68 MB / 442.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/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_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches