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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001009/0.001009, allocations: 181 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.446/1.446, allocations: 205.4 MB / 223.1 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000945/0.0009451, allocations: 100.1 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002653/0.0002653, allocations: 7.984 kB / 328.2 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2631, allocations: 47.56 MB / 375.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1346/0.3978, allocations: 110.2 MB / 486 MB, free: 2.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/0.3981, allocations: 91.94 kB / 486.1 MB, free: 2.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4299/0.828, allocations: 54.91 MB / 0.5283 GB, free: 89.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.8281, allocations: 3.938 kB / 0.5283 GB, free: 89.37 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002337/0.8283, allocations: 75.86 kB / 0.5284 GB, free: 89.3 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.006662/0.835, allocations: 2.97 MB / 0.5313 GB, free: 86.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.713e-05/0.8351, allocations: 8.031 kB / 0.5313 GB, free: 86.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000892/0.836, allocations: 356.9 kB / 0.5316 GB, free: 85.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00359/0.8396, allocations: 1.953 MB / 0.5335 GB, free: 83.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/0.8397, allocations: 188.9 kB / 0.5337 GB, free: 83.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003297/0.84, allocations: 251.9 kB / 0.534 GB, free: 83.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005279/0.8453, allocations: 3.383 MB / 0.5373 GB, free: 79.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.126e-05/0.8454, allocations: 4 kB / 0.5373 GB, free: 79.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002323/0.8456, allocations: 104 kB / 0.5374 GB, free: 79.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001064/0.8458, allocations: 112.8 kB / 0.5375 GB, free: 79.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004315/0.8501, allocations: 2.791 MB / 0.5402 GB, free: 76.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02305/0.8731, allocations: 10.91 MB / 0.5509 GB, free: 65.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003712/0.8769, allocations: 2.487 MB / 0.5533 GB, free: 63.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004579/0.8775, allocations: 146.3 kB / 0.5534 GB, free: 62.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.953e-05/0.8776, allocations: 51.83 kB / 0.5535 GB, free: 62.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 4.739e-06/0.8776, allocations: 0 / 0.5535 GB, free: 62.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.01847/0.8961, allocations: 7.295 MB / 0.5606 GB, free: 55.38 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.714e-05/0.8962, allocations: 94.42 kB / 0.5607 GB, free: 55.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005002/0.9013, allocations: 1.595 MB / 0.5622 GB, free: 53.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002495/0.9015, allocations: 49.7 kB / 0.5623 GB, free: 53.63 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001141/0.9027, allocations: 1.222 MB / 0.5635 GB, free: 52.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006633/0.9034, allocations: 0.4929 MB / 0.564 GB, free: 51.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002064/0.9036, allocations: 36 kB / 0.564 GB, free: 51.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002069/0.9038, allocations: 385.8 kB / 0.5644 GB, free: 51.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001513/0.9053, allocations: 0.8511 MB / 0.5652 GB, free: 50.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001767/0.9071, allocations: 1.317 MB / 0.5665 GB, free: 49.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001734/0.9089, allocations: 1.037 MB / 0.5675 GB, free: 48.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-05/0.9089, allocations: 4 kB / 0.5675 GB, free: 48.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.005498/0.9144, allocations: 2.864 MB / 0.5703 GB, free: 45.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003103/0.9175, allocations: 5.581 MB / 0.5758 GB, free: 39.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-05/0.9176, allocations: 16 kB / 0.5758 GB, free: 39.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002011/0.9196, allocations: 0.6754 MB / 0.5764 GB, free: 38.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001754/0.9214, allocations: 371.4 kB / 0.5768 GB, free: 38.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01037/0.9318, allocations: 8.496 MB / 0.5851 GB, free: 29.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002952/0.9348, allocations: 119.8 kB / 0.5852 GB, free: 29.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006687/0.9355, allocations: 68 kB / 0.5853 GB, free: 28.97 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.9356, allocations: 2.188 kB / 0.5853 GB, free: 28.97 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005762/0.9414, allocations: 2.65 MB / 0.5878 GB, free: 26.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.838e-05/0.9415, allocations: 16.44 kB / 0.5879 GB, free: 26.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001625/0.9431, allocations: 0.6671 MB / 0.5885 GB, free: 25.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/0.9446, allocations: 367.4 kB / 0.5889 GB, free: 25.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008949/0.9536, allocations: 8.494 MB / 0.5972 GB, free: 16.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002721/0.9564, allocations: 108.5 kB / 0.5973 GB, free: 16.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004853/0.9569, allocations: 75.94 kB / 0.5973 GB, free: 16.18 MB / 378.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.003378/0.9603, allocations: 0.9222 MB / 0.5982 GB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001176/0.9615, allocations: 197.6 kB / 0.5984 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005715/0.9672, allocations: 2.602 MB / 0.601 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.208e-05/0.9673, allocations: 15.98 kB / 0.601 GB, free: 12.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.848e-05/0.9673, allocations: 4 kB / 0.601 GB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.017e-05/0.9673, allocations: 7.969 kB / 0.601 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01251/0.9799, allocations: 5.414 MB / 0.6063 GB, free: 6.875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.487e-05/0.9799, allocations: 0 / 0.6063 GB, free: 6.875 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001037/0.981, allocations: 235.9 kB / 0.6065 GB, free: 6.645 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001805/0.9828, allocations: 0.6942 MB / 0.6072 GB, free: 5.938 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001536/0.983, allocations: 31.98 kB / 0.6072 GB, free: 5.906 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01233/0.9953, allocations: 10.03 MB / 0.617 GB, free: 11.33 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/0.9954, allocations: 64 / 0.617 GB, free: 11.33 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00925/1.005, allocations: 3.959 MB / 0.6209 GB, free: 7.262 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002394/1.007, allocations: 474.5 kB / 0.6213 GB, free: 6.777 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001035/1.008, allocations: 28 kB / 0.6214 GB, free: 6.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001816/1.01, allocations: 103.9 kB / 0.6215 GB, free: 6.648 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004786/1.011, allocations: 117.1 kB / 0.6216 GB, free: 6.535 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001526/1.011, allocations: 44 kB / 0.6216 GB, free: 6.492 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003983/1.015, allocations: 1.225 MB / 0.6228 GB, free: 5.277 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.41e-07/1.015, allocations: 0 / 0.6228 GB, free: 5.277 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008367/1.023, allocations: 1.039 MB / 0.6238 GB, free: 4.238 MB / 394.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.001332/1.024, allocations: 426.5 kB / 0.6242 GB, free: 3.816 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01053/1.035, allocations: 4.549 MB / 0.6287 GB, free: 15.15 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.756e-05/1.035, allocations: 4.875 kB / 0.6287 GB, free: 15.15 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003758/1.039, allocations: 1.747 MB / 0.6304 GB, free: 13.35 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005287/1.044, allocations: 0.5707 MB / 0.6309 GB, free: 12.79 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02082/1.065, allocations: 6.869 MB / 0.6376 GB, free: 5.855 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004449/1.07, allocations: 2.154 MB / 0.6398 GB, free: 3.668 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00362/1.073, allocations: 0.599 MB / 0.6403 GB, free: 3.066 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008867/1.074, allocations: 131.4 kB / 0.6405 GB, free: 2.938 MB / 410.7 MB Notification: Performance of SimCode: time 2.985e-06/1.074, allocations: 0 / 0.6405 GB, free: 2.938 MB / 410.7 MB Notification: Performance of Templates: time 0.4346/1.509, allocations: 41.55 MB / 0.681 GB, free: 97.41 MB / 410.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