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.0009639/0.0009639, allocations: 175 kB / 13.63 MB, free: 1.684 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.272/1.272, allocations: 221.3 MB / 235.5 MB, free: 2.926 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008691/0.0008693, allocations: 93.84 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.268e-05/2.27e-05, allocations: 0 / 343.8 MB, free: 4.305 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09281/0.09284, allocations: 50.42 MB / 394.3 MB, free: 1.844 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3087/0.4016, allocations: 110.4 MB / 0.4928 GB, free: 9.09 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.4019, allocations: 83.78 kB / 0.4929 GB, free: 9.012 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1392/0.5411, allocations: 55.26 MB / 0.5469 GB, free: 1.359 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.5412, allocations: 0 / 0.5469 GB, free: 1.359 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001859/0.5414, allocations: 75.92 kB / 0.5469 GB, free: 1.285 MB / 426.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.2075/0.7489, allocations: 2.648 MB / 0.5495 GB, free: 97.5 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.749, allocations: 9.281 kB / 0.5495 GB, free: 97.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001625/0.7506, allocations: 359.5 kB / 0.5499 GB, free: 97.33 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004496/0.7551, allocations: 1.93 MB / 0.5518 GB, free: 97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001439/0.7553, allocations: 190.1 kB / 0.5519 GB, free: 97 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005061/0.7558, allocations: 251.2 kB / 0.5522 GB, free: 96.99 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005361/0.7612, allocations: 3.318 MB / 0.5554 GB, free: 96.53 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.187e-05/0.7612, allocations: 14.14 kB / 0.5554 GB, free: 96.53 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002292/0.7615, allocations: 108.9 kB / 0.5555 GB, free: 96.53 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001159/0.7616, allocations: 112.2 kB / 0.5556 GB, free: 96.52 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004788/0.7664, allocations: 2.695 MB / 0.5583 GB, free: 96.49 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01811/0.7845, allocations: 10.91 MB / 0.5689 GB, free: 93.66 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002941/0.7875, allocations: 2.408 MB / 0.5713 GB, free: 92.75 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001458/0.789, allocations: 1.051 MB / 0.5723 GB, free: 92.37 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003352/0.7894, allocations: 136.1 kB / 0.5724 GB, free: 92.27 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.737e-05/0.7894, allocations: 50.31 kB / 0.5725 GB, free: 92.22 MB / 426.7 MB Notification: Performance of pre-optimization done (n=136): time 4.739e-06/0.7894, allocations: 0 / 0.5725 GB, free: 92.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=150): time 0.01084/0.8003, allocations: 5.49 MB / 0.5778 GB, free: 89.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.127e-05/0.8004, allocations: 93.8 kB / 0.5779 GB, free: 89.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002416/0.8028, allocations: 1.567 MB / 0.5795 GB, free: 89.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000192/0.803, allocations: 52.17 kB / 0.5795 GB, free: 89.24 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006074/0.8037, allocations: 1.214 MB / 0.5807 GB, free: 88.31 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003418/0.804, allocations: 0.5003 MB / 0.5812 GB, free: 87.92 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.155e-05/0.8041, allocations: 30.66 kB / 0.5812 GB, free: 87.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.8042, allocations: 375.6 kB / 0.5816 GB, free: 87.57 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001038/0.8052, allocations: 0.8254 MB / 0.5824 GB, free: 87.26 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001204/0.8065, allocations: 1.274 MB / 0.5836 GB, free: 86.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001246/0.8077, allocations: 1.012 MB / 0.5846 GB, free: 86.05 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.949e-06/0.8077, allocations: 3.312 kB / 0.5846 GB, free: 86.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.00395/0.8117, allocations: 2.803 MB / 0.5874 GB, free: 85.06 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008545/0.8126, allocations: 5.584 MB / 0.5928 GB, free: 79.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/0.8126, allocations: 14.44 kB / 0.5928 GB, free: 79.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001366/0.814, allocations: 0.6654 MB / 0.5935 GB, free: 78.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/0.8153, allocations: 373.5 kB / 0.5938 GB, free: 78.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006938/0.8222, allocations: 8.272 MB / 0.6019 GB, free: 73.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001722/0.824, allocations: 112.7 kB / 0.602 GB, free: 73.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001669/0.8242, allocations: 75.81 kB / 0.6021 GB, free: 73.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.069e-05/0.8242, allocations: 3.25 kB / 0.6021 GB, free: 73.11 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003476/0.8277, allocations: 2.605 MB / 0.6046 GB, free: 72.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.296e-05/0.8277, allocations: 12.53 kB / 0.6046 GB, free: 72.13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001277/0.829, allocations: 0.677 MB / 0.6053 GB, free: 71.92 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/0.8302, allocations: 365.7 kB / 0.6057 GB, free: 71.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00677/0.837, allocations: 8.266 MB / 0.6137 GB, free: 66.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/0.8388, allocations: 99.84 kB / 0.6138 GB, free: 66.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001638/0.8389, allocations: 79.41 kB / 0.6139 GB, free: 66.07 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.0003917/0.8393, allocations: 215.4 kB / 0.6141 GB, free: 65.88 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003609/0.8397, allocations: 203.7 kB / 0.6143 GB, free: 65.78 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00374/0.8434, allocations: 2.556 MB / 0.6168 GB, free: 64.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.8435, allocations: 15.5 kB / 0.6168 GB, free: 64.77 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.8435, allocations: 0 / 0.6168 GB, free: 64.77 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.41e-05/0.8435, allocations: 15.39 kB / 0.6168 GB, free: 64.77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007714/0.8512, allocations: 5.352 MB / 0.622 GB, free: 62.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.8513, allocations: 3.844 kB / 0.6221 GB, free: 62.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009202/0.8522, allocations: 233.1 kB / 0.6223 GB, free: 62.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00139/0.8536, allocations: 0.6978 MB / 0.623 GB, free: 62.34 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.807e-05/0.8537, allocations: 37.05 kB / 0.623 GB, free: 62.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007603/0.8613, allocations: 9.77 MB / 0.6325 GB, free: 55.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.8614, allocations: 0 / 0.6325 GB, free: 55.16 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00466/0.866, allocations: 3.872 MB / 0.6363 GB, free: 52.11 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009826/0.867, allocations: 471.4 kB / 0.6368 GB, free: 51.68 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002316/0.8673, allocations: 28 kB / 0.6368 GB, free: 51.65 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009645/0.8683, allocations: 100.7 kB / 0.6369 GB, free: 51.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002758/0.8685, allocations: 121 kB / 0.637 GB, free: 51.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.951e-05/0.8686, allocations: 43.94 kB / 0.637 GB, free: 51.46 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001532/0.8702, allocations: 1.2 MB / 0.6382 GB, free: 50.39 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.8702, allocations: 0 / 0.6382 GB, free: 50.39 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002934/0.8731, allocations: 1.046 MB / 0.6392 GB, free: 49.35 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.0005707/0.8737, allocations: 421.7 kB / 0.6396 GB, free: 49.03 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00502/0.8787, allocations: 4.489 MB / 0.644 GB, free: 44.79 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/0.8788, allocations: 4 kB / 0.644 GB, free: 44.78 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001808/0.8806, allocations: 1.703 MB / 0.6457 GB, free: 43.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002428/0.883, allocations: 0.5797 MB / 0.6463 GB, free: 42.75 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006776/0.8898, allocations: 4.513 MB / 0.6507 GB, free: 38.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001409/0.8913, allocations: 2.16 MB / 0.6528 GB, free: 36.98 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002516/0.8938, allocations: 0.8775 MB / 0.6536 GB, free: 36.43 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000264/0.8941, allocations: 103.4 kB / 0.6537 GB, free: 36.32 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/0.8941, allocations: 0 / 0.6537 GB, free: 36.32 MB / 426.7 MB Notification: Performance of Templates: time 0.06152/0.9556, allocations: 44.62 MB / 0.6973 GB, free: 12.95 MB / 442.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/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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches