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.001156/0.001156, allocations: 95 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001573/0.001573, allocations: 194.4 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.7 MB / 246.4 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002426/0.0002426, allocations: 8 kB / 307.1 MB, free: 1.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1181, allocations: 51.52 MB / 358.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.01111/0.1293, allocations: 10.19 MB / 368.8 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2163/0.3456, allocations: 3.538 MB / 372.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002521/0.3482, allocations: 62.09 kB / 372.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002523/0.3507, allocations: 0.6557 MB / 373.1 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003252/0.354, allocations: 0.7902 MB / 373.9 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001169/0.3552, allocations: 325.5 kB / 374.2 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005085/0.3603, allocations: 3.394 MB / 377.6 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002692/0.363, allocations: 1.743 MB / 379.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00264/0.3656, allocations: 1.101 MB / 380.4 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003378/0.369, allocations: 1.466 MB / 381.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005882/0.3696, allocations: 161.9 kB / 382.1 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001269/0.3709, allocations: 235.2 kB / 382.3 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001061/0.372, allocations: 0.8089 MB / 383.1 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001192/0.3732, allocations: 0.6028 MB / 383.7 MB, free: 7.863 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004445/0.3776, allocations: 4.123 MB / 387.8 MB, free: 6.297 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.994e-06/0.3776, allocations: 1.094 kB / 387.8 MB, free: 6.297 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3777, allocations: 0 / 387.8 MB, free: 6.297 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001396/0.3778, allocations: 4 kB / 387.8 MB, free: 6.293 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.007376/0.3852, allocations: 2.977 MB / 390.8 MB, free: 4.527 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.3852, allocations: 8.844 kB / 390.8 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00149/0.3867, allocations: 359.2 kB / 391.2 MB, free: 4.352 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003496/0.3902, allocations: 1.79 MB / 392.9 MB, free: 3.586 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/0.3904, allocations: 187.8 kB / 393.1 MB, free: 3.578 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003881/0.3908, allocations: 247.7 kB / 393.4 MB, free: 3.574 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006849/0.3977, allocations: 3.408 MB / 396.8 MB, free: 2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.968e-05/0.3978, allocations: 10.88 kB / 396.8 MB, free: 1.992 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002331/0.398, allocations: 107.5 kB / 396.9 MB, free: 1.914 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001118/0.3981, allocations: 119 kB / 397 MB, free: 1.895 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004697/0.4028, allocations: 2.916 MB / 399.9 MB, free: 364 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02089/0.4237, allocations: 10.92 MB / 410.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00306/0.4268, allocations: 2.437 MB / 413.3 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001833/0.4287, allocations: 1.187 MB / 414.5 MB, free: 1.453 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002856/0.429, allocations: 126.5 kB / 414.6 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/0.429, allocations: 57.67 kB / 414.7 MB, free: 1.254 MB / 318.1 MB Notification: Performance of pre-optimization done (n=133): time 4.448e-06/0.4291, allocations: 0 / 414.7 MB, free: 1.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=147): time 0.01606/0.4451, allocations: 7.258 MB / 421.9 MB, free: 9.871 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.99e-05/0.4452, allocations: 94.42 kB / 422 MB, free: 9.758 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003308/0.4485, allocations: 1.823 MB / 423.8 MB, free: 7.938 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001371/0.4487, allocations: 48 kB / 423.9 MB, free: 7.887 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001008/0.4497, allocations: 1.225 MB / 425.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005236/0.4502, allocations: 0.4965 MB / 425.6 MB, free: 6.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.348e-05/0.4503, allocations: 32 kB / 425.6 MB, free: 6.129 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002123/0.4506, allocations: 385.8 kB / 426 MB, free: 5.746 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001387/0.452, allocations: 0.8393 MB / 426.8 MB, free: 4.906 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001655/0.4536, allocations: 1.307 MB / 428.1 MB, free: 3.402 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001624/0.4553, allocations: 1.03 MB / 429.2 MB, free: 2.371 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/0.4553, allocations: 4 kB / 429.2 MB, free: 2.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005076/0.4604, allocations: 2.841 MB / 432 MB, free: 15.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005129/0.4609, allocations: 0.5046 MB / 432.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.919e-05/0.4609, allocations: 16 kB / 432.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001738/0.4627, allocations: 0.6711 MB / 433.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.464, allocations: 363.4 kB / 433.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009138/0.4731, allocations: 8.295 MB / 441.9 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002244/0.4754, allocations: 111.9 kB / 442 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/0.4755, allocations: 79.97 kB / 442.1 MB, free: 4.879 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.4756, allocations: 6.656 kB / 442.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004087/0.4796, allocations: 2.627 MB / 444.7 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.912e-05/0.4797, allocations: 12 kB / 444.7 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001424/0.4811, allocations: 0.6613 MB / 445.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/0.4823, allocations: 363.4 kB / 445.7 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00887/0.4912, allocations: 8.312 MB / 454 MB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002174/0.4934, allocations: 103.8 kB / 454.1 MB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001438/0.4935, allocations: 71.95 kB / 454.2 MB, free: 8.32 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_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 (181): * Single equations (assignments): 177 * 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.002468/0.496, allocations: 0.9299 MB / 455.1 MB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004524/0.4965, allocations: 201.6 kB / 455.3 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004358/0.5008, allocations: 2.555 MB / 457.9 MB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/0.5008, allocations: 16 kB / 457.9 MB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.5009, allocations: 4 kB / 457.9 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/0.5009, allocations: 7.969 kB / 457.9 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009099/0.51, allocations: 5.43 MB / 463.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.176e-06/0.51, allocations: 4 kB / 463.3 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008879/0.5109, allocations: 219.7 kB / 463.6 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001551/0.5125, allocations: 0.7043 MB / 464.3 MB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.706e-05/0.5126, allocations: 32 kB / 464.3 MB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01048/0.5231, allocations: 9.762 MB / 474.1 MB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.5231, allocations: 7.938 kB / 474.1 MB, free: 3.805 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006017/0.5291, allocations: 3.745 MB / 477.8 MB, free: 8 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00147/0.5306, allocations: 470.5 kB / 478.3 MB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002905/0.5309, allocations: 32 kB / 478.3 MB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009709/0.5319, allocations: 95.88 kB / 478.4 MB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003709/0.5323, allocations: 121 kB / 478.5 MB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-05/0.5324, allocations: 43.98 kB / 478.5 MB, free: 15.24 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002401/0.5348, allocations: 1.248 MB / 479.8 MB, free: 14 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.934e-06/0.5348, allocations: 0 / 479.8 MB, free: 14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003815/0.5386, allocations: 1.007 MB / 480.8 MB, free: 13 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 (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.0003572/0.539, allocations: 163.9 kB / 481 MB, free: 12.83 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006797/0.5458, allocations: 4.481 MB / 485.4 MB, free: 8.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.5458, allocations: 1.875 kB / 485.4 MB, free: 8.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002711/0.5486, allocations: 1.738 MB / 487.2 MB, free: 6.449 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003769/0.5523, allocations: 0.6008 MB / 487.8 MB, free: 5.859 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01221/0.5646, allocations: 6.443 MB / 494.2 MB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00213/0.5667, allocations: 2.11 MB / 496.3 MB, free: 13.22 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002252/0.569, allocations: 0.5834 MB / 496.9 MB, free: 12.63 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003985/0.5694, allocations: 131.4 kB / 497.1 MB, free: 12.5 MB / 414.1 MB Notification: Performance of SimCode: time 1.303e-06/0.5694, allocations: 3.938 kB / 497.1 MB, free: 12.5 MB / 414.1 MB Notification: Performance of Templates: time 0.07041/0.6398, allocations: 38.56 MB / 0.5231 GB, free: 6.219 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