Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001764/0.001764, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001609/0.001609, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 177 MB / 204.4 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 272.2 MB, free: 1.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.823e-05/2.992e-05, allocations: 13.27 kB / 272.2 MB, free: 1.777 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01488/0.01491, allocations: 10.07 MB / 282.3 MB, free: 7.664 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008181/0.02309, allocations: 3.416 MB / 285.7 MB, free: 4.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001497/0.02459, allocations: 83.44 kB / 285.8 MB, free: 4.148 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002265/0.02685, allocations: 0.8537 MB / 286.6 MB, free: 3.289 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003008/0.02986, allocations: 1.009 MB / 287.7 MB, free: 2.273 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.03087, allocations: 447.3 kB / 288.1 MB, free: 1.836 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.132/0.1629, allocations: 3.884 MB / 292 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00306/0.166, allocations: 1.539 MB / 293.5 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004861/0.1708, allocations: 2.476 MB / 296 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00355/0.1744, allocations: 1.752 MB / 297.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009558/0.1753, allocations: 417.8 kB / 298.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001376/0.1767, allocations: 0.4967 MB / 298.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001193/0.1779, allocations: 1.245 MB / 299.9 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002397/0.1803, allocations: 1.346 MB / 301.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005924/0.1862, allocations: 5.632 MB / 306.9 MB, free: 11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1862, allocations: 3.594 kB / 306.9 MB, free: 11 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1862, allocations: 0 / 306.9 MB, free: 11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001408/0.1864, allocations: 1.375 kB / 306.9 MB, free: 11 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.01064/0.197, allocations: 3.799 MB / 310.7 MB, free: 8.461 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.1971, allocations: 13.05 kB / 310.7 MB, free: 8.457 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001835/0.1989, allocations: 0.6347 MB / 311.3 MB, free: 8.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004823/0.2037, allocations: 2.083 MB / 313.4 MB, free: 6.441 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001733/0.2039, allocations: 218.7 kB / 313.6 MB, free: 6.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005208/0.2044, allocations: 288.3 kB / 313.9 MB, free: 5.949 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007915/0.2123, allocations: 4.167 MB / 318.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001032/0.2124, allocations: 3.953 kB / 318.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003825/0.2128, allocations: 127.9 kB / 318.2 MB, free: 1.504 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001425/0.213, allocations: 124.9 kB / 318.3 MB, free: 1.383 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008164/0.2211, allocations: 3.242 MB / 321.6 MB, free: 14.14 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02898/0.2501, allocations: 10.53 MB / 332.1 MB, free: 3.594 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003312/0.2534, allocations: 1.734 MB / 333.8 MB, free: 1.902 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002738/0.2562, allocations: 1.159 MB / 335 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002641/0.2564, allocations: 60 kB / 335 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.899e-05/0.2565, allocations: 55.75 kB / 335.1 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 4.158e-06/0.2565, allocations: 3.938 kB / 335.1 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.01718/0.2737, allocations: 6.554 MB / 341.7 MB, free: 10.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.926e-05/0.2737, allocations: 68.56 kB / 341.7 MB, free: 9.996 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003982/0.2777, allocations: 1.904 MB / 343.6 MB, free: 8.094 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001656/0.2779, allocations: 53.7 kB / 343.7 MB, free: 8.035 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001408/0.2793, allocations: 1.409 MB / 345.1 MB, free: 6.621 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006561/0.2799, allocations: 0.5266 MB / 345.6 MB, free: 6.102 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007228/0.2807, allocations: 343.4 kB / 345.9 MB, free: 5.758 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.2808, allocations: 305.1 kB / 346.2 MB, free: 5.457 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001672/0.2825, allocations: 0.8705 MB / 347.1 MB, free: 4.586 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002187/0.2847, allocations: 1.369 MB / 348.5 MB, free: 3.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004116/0.2888, allocations: 2.32 MB / 350.8 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.319e-05/0.2888, allocations: 4 kB / 350.8 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006864/0.2957, allocations: 3.271 MB / 354.1 MB, free: 13.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/0.2957, allocations: 18.56 kB / 354.1 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.395e-05/0.2958, allocations: 12 kB / 354.1 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003596/0.2994, allocations: 0.989 MB / 355.1 MB, free: 12.31 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.3008, allocations: 344.3 kB / 355.4 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02463/0.3254, allocations: 19.16 MB / 374.6 MB, free: 7.828 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001956/0.3273, allocations: 95.77 kB / 374.7 MB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003456/0.3277, allocations: 79.98 kB / 374.8 MB, free: 7.656 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002282/0.33, allocations: 0.9309 MB / 375.7 MB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008227/0.3308, allocations: 262.8 kB / 376 MB, free: 6.48 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005655/0.3364, allocations: 2.532 MB / 378.5 MB, free: 3.93 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.005e-05/0.3365, allocations: 15.94 kB / 378.5 MB, free: 3.914 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.07e-05/0.3365, allocations: 8 kB / 378.5 MB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-05/0.3365, allocations: 11.95 kB / 378.5 MB, free: 3.895 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01169/0.3482, allocations: 5.125 MB / 383.6 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/0.3482, allocations: 4 kB / 383.7 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008732/0.3491, allocations: 191 kB / 383.8 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003014/0.3521, allocations: 0.8642 MB / 384.7 MB, free: 13.65 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000132/0.3522, allocations: 39.98 kB / 384.7 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02058/0.3728, allocations: 16.85 MB / 401.6 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.448e-06/0.3728, allocations: 7.469 kB / 401.6 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007957/0.3808, allocations: 3.75 MB / 405.3 MB, free: 8.008 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001517/0.3823, allocations: 406.5 kB / 405.7 MB, free: 7.609 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006029/0.3829, allocations: 36 kB / 405.8 MB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001427/0.3843, allocations: 103.9 kB / 405.9 MB, free: 7.473 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004324/0.3848, allocations: 151.6 kB / 406 MB, free: 7.328 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001665/0.3849, allocations: 43.98 kB / 406.1 MB, free: 7.285 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00293/0.3879, allocations: 1.271 MB / 407.3 MB, free: 6.023 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3879, allocations: 4 kB / 407.3 MB, free: 6.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003469/0.3913, allocations: 0.6523 MB / 408 MB, free: 5.367 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000606/0.3919, allocations: 202 kB / 408.2 MB, free: 5.176 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005986/0.3979, allocations: 3.364 MB / 411.6 MB, free: 1.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/0.3979, allocations: 4.188 kB / 411.6 MB, free: 1.727 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003388/0.4013, allocations: 2.141 MB / 413.7 MB, free: 15.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004237/0.4056, allocations: 0.6382 MB / 414.3 MB, free: 14.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01271/0.4183, allocations: 5.719 MB / 420.1 MB, free: 9.086 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003564/0.4218, allocations: 1.734 MB / 421.8 MB, free: 7.32 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001975/0.4238, allocations: 477.5 kB / 422.3 MB, free: 6.852 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006065/0.4244, allocations: 128.5 kB / 422.4 MB, free: 6.727 MB / 378.7 MB Notification: Performance of SimCode: time 2.104e-06/0.4244, allocations: 0 / 422.4 MB, free: 6.727 MB / 378.7 MB Notification: Performance of Templates: time 0.1859/0.6103, allocations: 38.09 MB / 460.5 MB, free: 102.9 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.9314502499764785]