Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007446/0.0007446, allocations: 95.69 kB / 17.35 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008594/0.0008593, allocations: 200.1 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000311/0.0003113, allocations: 4 kB / 307.7 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1165, allocations: 51.53 MB / 359.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.0121/0.1287, allocations: 10.84 MB / 370.1 MB, free: 2.422 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2114/0.3401, allocations: 3.684 MB / 373.8 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001626/0.3418, allocations: 59.53 kB / 373.9 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002082/0.3439, allocations: 0.7193 MB / 374.6 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003057/0.347, allocations: 0.8387 MB / 375.4 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00113/0.3481, allocations: 441.4 kB / 375.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00467/0.3528, allocations: 3.77 MB / 379.6 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002633/0.3555, allocations: 2.178 MB / 381.8 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002345/0.3578, allocations: 1.119 MB / 382.9 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002239/0.3601, allocations: 1.519 MB / 384.4 MB, free: 7.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004411/0.3605, allocations: 163.4 kB / 384.6 MB, free: 7.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009393/0.3615, allocations: 279.2 kB / 384.9 MB, free: 7.449 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008044/0.3623, allocations: 0.8154 MB / 385.7 MB, free: 7.105 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001619/0.3639, allocations: 1.477 MB / 387.2 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00397/0.3679, allocations: 4.785 MB / 391.9 MB, free: 3.438 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3679, allocations: 1.531 kB / 391.9 MB, free: 3.438 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3679, allocations: 3.938 kB / 391.9 MB, free: 3.434 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001007/0.368, allocations: 0 / 391.9 MB, free: 3.434 MB / 302.1 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.005551/0.3736, allocations: 2.952 MB / 394.9 MB, free: 1.445 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.3737, allocations: 9.469 kB / 394.9 MB, free: 1.445 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001108/0.3748, allocations: 357.2 kB / 395.3 MB, free: 1.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002992/0.3778, allocations: 1.846 MB / 397.1 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.3779, allocations: 190.2 kB / 397.3 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003766/0.3783, allocations: 250.6 kB / 397.5 MB, free: 15.81 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005614/0.3839, allocations: 3.42 MB / 401 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.5e-05/0.384, allocations: 18.44 kB / 401 MB, free: 13.72 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002328/0.3843, allocations: 103 kB / 401.1 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001079/0.3844, allocations: 117.2 kB / 401.2 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005041/0.3894, allocations: 2.942 MB / 404.1 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01605/0.4055, allocations: 10.94 MB / 415.1 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00273/0.4083, allocations: 2.436 MB / 417.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001758/0.41, allocations: 1.195 MB / 418.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002517/0.4103, allocations: 120.9 kB / 418.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.4104, allocations: 48.34 kB / 418.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=133): time 4.899e-06/0.4104, allocations: 4 kB / 418.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=147): time 0.01481/0.4252, allocations: 7.305 MB / 426.2 MB, free: 4.348 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.4253, allocations: 94.42 kB / 426.3 MB, free: 4.234 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002568/0.4279, allocations: 1.838 MB / 428.1 MB, free: 2.398 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001241/0.428, allocations: 53.7 kB / 428.1 MB, free: 2.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008198/0.4288, allocations: 1.216 MB / 429.4 MB, free: 1.113 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003868/0.4292, allocations: 0.4925 MB / 429.9 MB, free: 0.625 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001946/0.4294, allocations: 137.6 kB / 430 MB, free: 496 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.781e-05/0.4295, allocations: 305.1 kB / 430.3 MB, free: 188 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.4308, allocations: 0.8627 MB / 431.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001532/0.4323, allocations: 1.321 MB / 432.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002921/0.4353, allocations: 2.265 MB / 434.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.778e-06/0.4353, allocations: 4 kB / 434.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004678/0.44, allocations: 2.86 MB / 437.6 MB, free: 8.469 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003502/0.4403, allocations: 0.5037 MB / 438.1 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/0.4404, allocations: 12 kB / 438.1 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001521/0.4419, allocations: 0.6796 MB / 438.8 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.4432, allocations: 355.4 kB / 439.1 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009563/0.4527, allocations: 8.313 MB / 447.5 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002004/0.4548, allocations: 111.8 kB / 447.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001738/0.455, allocations: 71.98 kB / 447.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.866e-06/0.455, allocations: 4 kB / 447.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004343/0.4593, allocations: 2.639 MB / 450.3 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.631e-05/0.4594, allocations: 12.06 kB / 450.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/0.4609, allocations: 0.6748 MB / 451 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.4621, allocations: 355.4 kB / 451.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009415/0.4715, allocations: 8.304 MB / 459.6 MB, free: 1.422 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002371/0.4739, allocations: 111.9 kB / 459.7 MB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002137/0.4741, allocations: 64 kB / 459.8 MB, free: 1.25 MB / 366.1 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_n.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[1].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 (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,9,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,20)} Notification: Performance of prepare postOptimizeDAE: time 0.002354/0.4765, allocations: 0.9327 MB / 460.7 MB, free: 316 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005869/0.4771, allocations: 205.5 kB / 460.9 MB, free: 108 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004619/0.4817, allocations: 2.559 MB / 463.5 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/0.4818, allocations: 16 kB / 463.5 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.4818, allocations: 0 / 463.5 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/0.4818, allocations: 7.969 kB / 463.5 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009234/0.491, allocations: 5.452 MB / 469 MB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.4911, allocations: 0 / 469 MB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009392/0.492, allocations: 223.7 kB / 469.2 MB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001666/0.4937, allocations: 0.7026 MB / 469.9 MB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.4938, allocations: 32 kB / 469.9 MB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01066/0.5045, allocations: 9.769 MB / 479.7 MB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.5045, allocations: 4 kB / 479.7 MB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00613/0.5106, allocations: 3.765 MB / 483.4 MB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001218/0.5119, allocations: 470.5 kB / 483.9 MB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002751/0.5122, allocations: 32 kB / 483.9 MB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.5132, allocations: 107.9 kB / 484 MB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000323/0.5136, allocations: 121 kB / 484.2 MB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.765e-05/0.5137, allocations: 39.98 kB / 484.2 MB, free: 8.102 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002141/0.5158, allocations: 1.26 MB / 485.5 MB, free: 6.852 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5158, allocations: 0 / 485.5 MB, free: 6.852 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003618/0.5195, allocations: 1 MB / 486.5 MB, free: 5.852 MB / 398.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,20)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005371/0.52, allocations: 203.4 kB / 486.7 MB, free: 5.645 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00714/0.5272, allocations: 4.506 MB / 491.2 MB, free: 1.027 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.5272, allocations: 4 kB / 491.2 MB, free: 1.023 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002501/0.5297, allocations: 1.732 MB / 492.9 MB, free: 15.24 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003847/0.5336, allocations: 0.5924 MB / 493.5 MB, free: 14.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01093/0.5445, allocations: 6.749 MB / 0.4885 GB, free: 7.859 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002045/0.5466, allocations: 2.087 MB / 0.4906 GB, free: 5.734 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002121/0.5487, allocations: 0.5873 MB / 0.4911 GB, free: 5.145 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003968/0.5491, allocations: 135.4 kB / 0.4913 GB, free: 5.012 MB / 414.1 MB Notification: Performance of SimCode: time 1.323e-06/0.5492, allocations: 0 / 0.4913 GB, free: 5.012 MB / 414.1 MB Notification: Performance of Templates: time 0.2776/0.8268, allocations: 39.59 MB / 0.5299 GB, free: 142.8 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches